Is there any way to force Replica inside particular Node

Hi,

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.

Thanks & Regards,
Sumit Gupta

Are you positive you have two nodes up and running? This should be a green state with 2 nodes, 2 shards, 1 replica.

Hi,

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.

Thanks & Regards,
Sumit Gupta

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.


--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Is-there-any-way-to-force-Replica-inside-particular-Node-tp4051537p4051560.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/75ea93b7-422e-4b50-af5e-90e652578d7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1 Like