# Shard Allocation Problem

**URL:** https://discuss.elastic.co/t/shard-allocation-problem/22965
**Category:** Elasticsearch
**Created:** [March 28, 2015, 7:29pm UTC](https://discuss.elastic.co/t/shard-allocation-problem/22965 "2015-03-28T19:29:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Marcelo\_Paes\_Rech](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Marcelo\_Paes\_Rech](https://discuss.elastic.co/u/Marcelo_Paes_Rech)
#### Post date: [March 28, 2015, 7:29pm UTC](https://discuss.elastic.co/t/shard-allocation-problem/22965/1 "2015-03-28T19:29:04Z")

</div>

Hi guys,

Our cluster has 7 data nodes. Last week one of them was turned off. We  
restarted the node and then the cluster started rebalancing. The problem is  
it never finishes rebalancing.

Node logs shows an update coming from master node during the rebalancing,  
seconds later the rebalancing is canceled and then it starts again.

I have created #10281  
[https://github.com/elastic/elasticsearch/issues/10281](https://github.com/elastic/elasticsearch/issues/10281) on GitHub, but I am  
including the problem here too. Maybe somebody ran into this problem and  
already fixed it.

The logs were collected in different moments but they represent the same  
behaviour.

The log follows:

Data Node

> <https://gist.github.com/marcelopaesrech/7b9f94310ff7a24bed9e>

Master Node

> <https://gist.github.com/marcelopaesrech/c80542a85c83d9c1756d>

Regards.

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e15b7401-259b-409d-8631-63642d2b695e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e15b7401-259b-409d-8631-63642d2b695e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Marcelo\_Paes\_Rech](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Marcelo\_Paes\_Rech](https://discuss.elastic.co/u/Marcelo_Paes_Rech)
#### Post date: [April 1, 2015, 6:45pm UTC](https://discuss.elastic.co/t/shard-allocation-problem/22965/2 "2015-04-01T18:45:52Z")

</div>

The Elasticsearch Team closed the issue, but I didn't have an answer. I  
still looking for a solution.

Regards.

Em sábado, 28 de março de 2015 16:29:05 UTC-3, Marcelo Paes Rech escreveu:

> Hi guys,
> 
> Our cluster has 7 data nodes. Last week one of them was turned off. We  
> restarted the node and then the cluster started rebalancing. The problem is  
> it never finishes rebalancing.
> 
> Node logs shows an update coming from master node during the rebalancing,  
> seconds later the rebalancing is canceled and then it starts again.
> 
> I have created #10281  
> [https://github.com/elastic/elasticsearch/issues/10281](https://github.com/elastic/elasticsearch/issues/10281) on GitHub, but I  
> am including the problem here too. Maybe somebody ran into this problem and  
> already fixed it.
> 
> The logs were collected in different moments but they represent the same  
> behaviour.
> 
> The log follows:
> 
> Data Node
> 
> [Data node 10281 · GitHub](https://gist.github.com/marcelopaesrech/7b9f94310ff7a24bed9e)
> 
> Master Node
> 
> [LOG Master Node 10281 · GitHub](https://gist.github.com/marcelopaesrech/c80542a85c83d9c1756d)
> 
> Regards.

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d7e23198-fd2a-4b41-aeed-cf9b8cc23ae7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d7e23198-fd2a-4b41-aeed-cf9b8cc23ae7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [April 1, 2015, 11:21pm UTC](https://discuss.elastic.co/t/shard-allocation-problem/22965/3 "2015-04-01T23:21:36Z")

</div>

It looks like this is only happening for replicas. I'd suggest picking a  
single index, remove the replicas and then re-add them and see if they are  
allocated successfully.

On 2 April 2015 at 05:45, Marcelo Paes Rech [marcelopaesrech@gmail.com](mailto:marcelopaesrech@gmail.com)  
wrote:

> The Elasticsearch Team closed the issue, but I didn't have an answer. I  
> still looking for a solution.
> 
> Regards.
> 
> Em sábado, 28 de março de 2015 16:29:05 UTC-3, Marcelo Paes Rech escreveu:
> 
> > Hi guys,
> > 
> > Our cluster has 7 data nodes. Last week one of them was turned off. We  
> > restarted the node and then the cluster started rebalancing. The problem is  
> > it never finishes rebalancing.
> > 
> > Node logs shows an update coming from master node during the rebalancing,  
> > seconds later the rebalancing is canceled and then it starts again.
> > 
> > I have created #10281  
> > [https://github.com/elastic/elasticsearch/issues/10281](https://github.com/elastic/elasticsearch/issues/10281) on GitHub, but I  
> > am including the problem here too. Maybe somebody ran into this problem and  
> > already fixed it.
> > 
> > The logs were collected in different moments but they represent the same  
> > behaviour.
> > 
> > The log follows:
> > 
> > Data Node
> > 
> > [Data node 10281 · GitHub](https://gist.github.com/marcelopaesrech/7b9f94310ff7a24bed9e)
> > 
> > Master Node
> > 
> > [LOG Master Node 10281 · GitHub](https://gist.github.com/marcelopaesrech/c80542a85c83d9c1756d)
> > 
> > Regards.
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/d7e23198-fd2a-4b41-aeed-cf9b8cc23ae7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d7e23198-fd2a-4b41-aeed-cf9b8cc23ae7%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/d7e23198-fd2a-4b41-aeed-cf9b8cc23ae7%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d7e23198-fd2a-4b41-aeed-cf9b8cc23ae7%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-RicbxJ\_azuKDPPjTX11tX2baXYRQpJqNBvgHTPtC1bg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-RicbxJ_azuKDPPjTX11tX2baXYRQpJqNBvgHTPtC1bg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:22am UTC](https://discuss.elastic.co/t/shard-allocation-problem/22965/4 "2017-07-06T00:22:09Z")

</div>


