I play with awareness. I have 2 racks: rack1 and rack2.
In rack1 i have 2 elastic nodes(rack1-node1 and rack1-node2), in rack2 i have 1 elastic node(rack2-node1).
I've configured on rack1-node1 and rack1-node2:
and on rack2-node1:
I've created indexes with number_of_replicas: 1
When rack2-node1 is up - everything works ok. Shards are distributed between rack1-node1 and rack2-node2 with moving them to worked node.
But - when i put rack2-node1 down - shards stay without replicas - even if they can have replica on secondary node in rack1.
What can i do wrong? From documentation i understood that this behaviour can be caused by cluster.routing.allocation.awareness.force - but i don't use that.
Elasticsearch 2.3.5 if it matter.