# Spread the active shards between the nodes

**URL:** https://discuss.elastic.co/t/spread-the-active-shards-between-the-nodes/12839
**Category:** Elasticsearch
**Created:** [July 18, 2013, 11:04am UTC](https://discuss.elastic.co/t/spread-the-active-shards-between-the-nodes/12839 "2013-07-18T11:04:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Amit\_Bh](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Amit\_Bh](https://discuss.elastic.co/u/Amit_Bh)
#### Post date: [July 18, 2013, 11:04am UTC](https://discuss.elastic.co/t/spread-the-active-shards-between-the-nodes/12839/1 "2013-07-18T11:04:02Z")

</div>

Hi,

We have a cluster on production with two nodes and 3 indices.  
We restarted the two nodes yesterday and we saw in Head that the active  
shards are found only in one node (see attached image).  
There's a way to spread the active shards between the nodes? or ES is  
manage the shards allocating himself?

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 [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: ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)
#### Post date: [July 18, 2013, 1:53pm UTC](https://discuss.elastic.co/t/spread-the-active-shards-between-the-nodes/12839/2 "2013-07-18T13:53:48Z")

</div>

Hello Amit,

AFAIK there's no way to allocate the primaries evenly between nodes. But in  
most situations, that isn't an issue, because both search and indexing load  
will be balanced by default between the two nodes:

- each indexed documents is actually indexed both in the primary in the  
replica
- search requests are round robinned between the primaries and replicas

Are you seeing that the load is uneven between the two nodes?

Best regards,  
Radu

On Thu, Jul 18, 2013 at 2:04 PM, Amit Bh [amitbar@gmail.com](mailto:amitbar@gmail.com) wrote:

> Hi,
> 
> We have a cluster on production with two nodes and 3 indices.  
> We restarted the two nodes yesterday and we saw in Head that the active  
> shards are found only in one node (see attached image).  
> There's a way to spread the active shards between the nodes? or ES is  
> manage the shards allocating himself?
> 
> 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 [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).

--  
[http://sematext.com/](http://sematext.com/) -- Elasticsearch -- Solr -- Lucene

--  
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:25am UTC](https://discuss.elastic.co/t/spread-the-active-shards-between-the-nodes/12839/3 "2017-07-06T02:25:44Z")

</div>


