I have a cluster of two nodes, and set the configs for shard number and
replica number as following:
The master node is elected automatically.
Before I index data, the state of the cluster is green. After I index data,
the state of the cluster becomes yellow. Some replica shards are not
But if I add another node and now the cluster consists of three nodes, then
I index data and the state of the cluster becomes green.
The version of ES that I use is 1.1.
If the replica number is 1, do I have to have at least 3 nodes to
assure the state of the cluster is green?
I have observed that one (not the master node) of the three nodes just
has primary nodes. What's the mechanism ES uses to allocate primary/replia
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKLbBG-o6JmkbPAAvGBP8t8Bdp-ONEWEFK5kGW%3Dcyn-h-O6dsg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.