Shard balancing question


(Chris Berry-2) #1

Greetings,

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,
R=replica)
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/049ee90a-06a5-4325-8a3d-a2a5eb264d2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2