Shard allocation with Multi Index in a cluster

Hi,

Is shard/replica balancing between nodes done for all the indices on a
cluster,
meaning elasticsearch spreads the shards and replicas for several indices
as it would for one index?

Thanks,
Ophir

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

On Wed, 2013-02-27 at 02:01 -0800, Ophir Michaeli wrote:

Hi,

Is shard/replica balancing between nodes done for all the indices on a
cluster,
meaning elasticsearch spreads the shards and replicas for several
indices as it would for one index?

yes

clint

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

I have a follow up question:

I'm considering the following scenario in our system.

Say we have 4 nodes and 1 shard per node.

Now I see that the size of shards is almost at maximum disk size so I add a
new index and opens a new node (and stop indexing to old nodes), that new
index is defined with 4 shards.

Does elasticsearch allocates the 4 shards to the same new node because size
wise it is better for them to be allocated to this node, or does it put 2
shards in the new node and 2 others to the other "old" nodes (so the size
problem remains as the new shards grow)?

Thanks,

Ophir

On Wednesday, February 27, 2013 1:00:52 PM UTC+2, Clinton Gormley wrote:

On Wed, 2013-02-27 at 02:01 -0800, Ophir Michaeli wrote:

Hi,

Is shard/replica balancing between nodes done for all the indices on a
cluster,
meaning elasticsearch spreads the shards and replicas for several
indices as it would for one index?

yes

clint

--
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.
For more options, visit https://groups.google.com/groups/opt_out.