# Shard allocation with Multi Index in a cluster

**URL:** <https://discuss.elastic.co/t/shard-allocation-with-multi-index-in-a-cluster/10922>\
**Category:** Elasticsearch\
**Created:** [February 27, 2013, 10:01am UTC](https://discuss.elastic.co/t/shard-allocation-with-multi-index-in-a-cluster/10922 "2013-02-27T10:01:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 27, 2013, 10:01am UTC](https://discuss.elastic.co/t/shard-allocation-with-multi-index-in-a-cluster/10922/1 "2013-02-27T10:01:20Z")

</div>

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [February 27, 2013, 11:00am UTC](https://discuss.elastic.co/t/shard-allocation-with-multi-index-in-a-cluster/10922/2 "2013-02-27T11:00:52Z")

</div>

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 27, 2013, 2:19pm UTC](https://discuss.elastic.co/t/shard-allocation-with-multi-index-in-a-cluster/10922/3 "2013-02-27T14:19:23Z")

</div>

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:49am UTC](https://discuss.elastic.co/t/shard-allocation-with-multi-index-in-a-cluster/10922/4 "2017-07-06T02:49:19Z")

</div>


