All primary shards are added to only one node

Hi,

I see a behavior in elasticsearch that all the primary shards (we have 5 shards per index) added to only one of the three nodes in cluster all the time. Why is this happening?

Currently we have replicas disabled. When we add replica to that index, then the replicas are distributed among other two nodes.

Thanks.

1 Like

Does your elasticsearch config contain any settings that start with cluster.routing.?

Even before the cluster.routing was there this issue raised.
But I added that setting for rolling restarting of nodes yesterday.
But this issue of all primary shards into one node is happening for last one week.

What version?

1.5.2