# Unbalanced cluster state (split-brain?)

**URL:** <https://discuss.elastic.co/t/unbalanced-cluster-state-split-brain/10097>\
**Category:** Elasticsearch\
**Created:** [December 17, 2012, 7:09pm UTC](https://discuss.elastic.co/t/unbalanced-cluster-state-split-brain/10097 "2012-12-17T19:09:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinicius\_Carvalho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinicius_carvalho/32/770_2.png) [@Vinicius\_Carvalho](https://discuss.elastic.co/u/Vinicius_Carvalho)\
**Post date:** [December 17, 2012, 7:09pm UTC](https://discuss.elastic.co/t/unbalanced-cluster-state-split-brain/10097/1 "2012-12-17T19:09:20Z")

</div>

Our cluster has 12 shards 4 nodes, 1 replica.

After a crash, sometimes our cluster does not re balance it self.

Right now, the master node has 8 shards all primary, and one of the nodes  
only has 3 shards.

Memory usage on the master is 3x higher than on other nodes because of  
that. Is there any way to force a rebalance without taking one of the nodes  
down?

I wonder if we are seeing some split brain syndrome here. We took down all  
nodes, and restarted them with an interval of 2min between them

PS: more than once, we got into an unrecoverable state when trying to start  
all nodes at once, that's why we have some interval now.

Any ideas on why this might be happening?

--

---

<div class="post-metadata">

**Author:** ![Vinicius\_Carvalho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinicius_carvalho/32/770_2.png) [@Vinicius\_Carvalho](https://discuss.elastic.co/u/Vinicius_Carvalho)\
**Post date:** [December 17, 2012, 11:44pm UTC](https://discuss.elastic.co/t/unbalanced-cluster-state-split-brain/10097/2 "2012-12-17T23:44:10Z")

</div>

Douh! Forget it, I just found that shards are not balanced at index level.  
So we had an small index opened, that was unbalancing the search index.

On Monday, December 17, 2012 2:09:20 PM UTC-5, Vinicius Carvalho wrote:

> Our cluster has 12 shards 4 nodes, 1 replica.
> 
> After a crash, sometimes our cluster does not re balance it self.
> 
> Right now, the master node has 8 shards all primary, and one of the nodes  
> only has 3 shards.
> 
> Memory usage on the master is 3x higher than on other nodes because of  
> that. Is there any way to force a rebalance without taking one of the nodes  
> down?
> 
> I wonder if we are seeing some split brain syndrome here. We took down all  
> nodes, and restarted them with an interval of 2min between them
> 
> PS: more than once, we got into an unrecoverable state when trying to  
> start all nodes at once, that's why we have some interval now.
> 
> Any ideas on why this might be happening?

--

---

<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:59am UTC](https://discuss.elastic.co/t/unbalanced-cluster-state-split-brain/10097/3 "2017-07-06T02:59:32Z")

</div>

Closed on July 6, 2017, 2:59am UTC


