Reputation: 4167
I have elasticsearch cluster with 4 nodes (ES 1.3.5):
1x c4.xlarge client node
master: false
data: false
3x of c4.xlarge
master: true
data: true
index.number_of_shards: 1
index.number_of_replicas: 2
discovery.zen.minimum_master_nodes: 2
App sends requests to the client node that should load-balance them to different cluster nodes (as i understand). But seems that only one cluster node (that picked as master) handling queries and taking all load.
How to balance this load to all nodes?
Upvotes: 1
Views: 2034
Reputation: 6500
There are a few things that you can do to load-balance, but i'm also providing some steps improve the performance because just load-balancing will not give you efficiency(and i assume thats why you have a question about load balance).
Just for reference i'm providing a related and useful article from the creator of Elastic Search - https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster
Upvotes: 4
Reputation: 2279
You should increase your number of shard. One shard means that a single node will hold all your index. Consequently, when a query is sent, only a single node will handle the query.
Upvotes: 2