Shard balancing question

(Chris Berry-2) #1


I have a question about Shard balancing.
I have a 5 Node Cluster with a particular Index that has 4 Shards, 1 Replica
So 8 Shards total.

And when I look at the Index it is allocated as follows; (Note: P=primary,
Node 1: P0
Node 2: P1, P2, P3
Node 3:
Node 4: R0
Node 5: R1, R2, R3

Clearly, this is not well balanced.

I was hoping that it would -- over time -- balance to something like this
Node 1: P0,
Node 2: P1, R3
Node 3: P2, R2
Node 4: P3, R1
Node 5: R0,

I've read the doc on cluster allocation, but I don't really see how I can
force a more balanced distribution easily.
But I am likely missing something....

And also, I worry about fiddling with some of these settings and the
adverse effect they may have on reallocation if/when a Node fails.

Thank you,
-- Chris

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

(system) #2