I am trying to understand Elasticsearch default rules for shard allocation. I have 6 nodes and created a test index with all default settings (5 shards, 1 replica). To my surprise, all 5 primary shards are collocated in a single node (the node to which the creation request was sent -- not sure if this is coincidence) while replicas are spread around. I realize this configuration is contrived, but I would appreciate any help in understanding why the primary shards are not being scattered.
My cluster and indexes all report healthy status. I have created other indices with similar effects: even a 12-shard index seems very unevenly distributed over the 6 nodes (some nodes only hold replicas). Is it reasonable to expect a more even shard distribution without tweaking shard allocations manually? Thanks. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/abbefd82-579e-452a-8922-29dcb099cce6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
