ElasticSearch Cluster Replication
<p>I have an <code>Elasticsearch</code> cluster of 3 nodes. Each node can become a master and data node. My <code>Elasticsearch</code> settings are:</p>

<pre><code>index.number_of_shards: 8
index.number_of_replicas: 2
gateway.recover_after_nodes: 2
gateway.recover_after_time: 5m
gateway.expected_nodes: 3
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["host1", "host2:9200","host3:9200"]

My Cluster is up now and cluster health is green. But Shard allocation is like

Node1 - 0,1,2,3,4,6 where 6 is primary and other are replicas

Node2 - 5,6,7 all replicas

Node3 - 0,1,2,3,4,5,7 all primary
</code></pre>

<p>This structure shows only 1 replica copy of each shard split on nodes. But I mentioned 2 replicas in settings then it should show 2 replica copy of each shard.</p>

<p>Am I understanding it wrong or something is missing in settings.</p>