Hi,
I have a multinode Elasticsearch setup with one master node and two data nodes. I created an index with number of shards as 2 and number of replicas as 1 and inserted the data in the index.
However I see that both the shards are present in one node and the replicas in the other node as seen below
GET /_cat/shards
enodeb 1 p STARTED 937826 125.4mb Y.YY.Y.72 data-1
enodeb 1 r STARTED 937826 124.1mb X.XX.X.73 data-2
enodeb 0 p STARTED 937263 124.7mb Y.YY.Y.72 data-1
enodeb 0 r STARTED 937263 126.2mb X.XX.X.73 data-2
I was of the assumption that shard 0 would be in one node and shard 1 would be in the other node with each replica on the other nodes. Am I missing any configuration here, as in how to distribute the shards across these two nodes?
I would appreciate if anyone could assist me on this.
Thanks
