I am trying to configure ES Cluster using 2 Nodes in different Network.I am creating 1 index using 2 shards and 1 replica 1 replica is unassigned in cluster and cluster state is yellow.
Please tell me how we force replica inside particular Node.
I got it why it is happening because of different version of ES.
But Now i want configure like for one node two shards and for one node two replicas.Please advice.
well, I guess it depends of the number of shards, number of replicas
settings you may have.
say you have 5 shards, 1 replica in your settings.
if you have two nodes up&running, you should have 5 shards in each one.
among those shards, some of them will be primary, some of them will be
replicas. index ops can only be done in primary shards, read ops can be
done in either primary shard or replica shard
but which shard is in which node is up to elasticsearch, it can be 3
primary shards and 2 replica shards on the first node, and the other way
around on the second, for instance.
there are some tweaks you can do, like shard allocation and the awareness
setting.
On Tuesday, March 11, 2014 11:36:27 AM UTC-4, Michael Lussier wrote:
Are you positive you have two nodes up and running? This should be a green
state with 2 nodes, 2 shards, 1 replica.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.