Reputation: 187
I call the bulk
api to write data to the es
cluster.Just sent data to the master nodes or send data to all nodes include data nodes?
Upvotes: 1
Views: 852
Reputation: 217554
Since master nodes don't hold any data, if you send your bulk queries to them, there will be two hops (client -> master + master -> data) until the data arrives at a data node to be indexed.
For this reason, you need to send your bulk queries directly to one data node of your cluster and it will happily index the data.
Upvotes: 1