I have a Question on replica settings. Would appreciate your help on this.
- I was having one node of ES where initially; it was with default setup
which is 5 shards and 1 replica.
- Then I wanted to increase the node to 2.
- Before adding another node I stopped the running node. Edited the
elasticsearch.yml and changed the replica number to 0.
- Then I started both the nodes. (Both the nodes has same elasticsearch
config parameters especially on number of shards and replica)
- Now I expect the shards to get distributed among both the nodes.
But the second node replicated entire indices and shards and became more
like a replica.
Is there anything I am doing wrong?