Hi,
I was experimenting with the
cluster.routing.allocation.awareness.attributes setting. I started with
one data node in the cluster, with allocation awareness attribute set to
value1. I expect that all the shards will be allocated to this node.
Instead, only primary shards are allocated to
Take a look at the example here
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-cluster.html#allocation-awareness
Basically a shard and it's replica will never be allocated to the same
instance, which is what you are seeing.
Regards,
Mark Walkom
Infrastructure
Hmm... I'm reading the same document and came to the opposite conclusion.
:( My understanding is that if all the nodes have the same attribute, then
_all_ shards will be deployed among them. As soon as a node with different
attribute arrives, that's when the replica will not be deployed to
If you only have one node the replicas will never be assigned.
Regards,
Mark Walkom
Infrastructure Engineer
Campaign Monitor
email: ma...@campaignmonitor.com
web: www.campaignmonitor.com
On 26 July 2014 09:23, Yongtao You yongtao@gmail.com wrote:
Hmm... I'm reading the same document and