zmy
zmy

Reputation: 187

Sent data to master nodes or all nodes?

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

Answers (1)

Val
Val

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

Related Questions