# ElasticSearch dropping data, and not joining after split-brain

**URL:** https://discuss.elastic.co/t/elasticsearch-dropping-data-and-not-joining-after-split-brain/11568
**Category:** Elasticsearch
**Created:** [April 12, 2013, 3:20pm UTC](https://discuss.elastic.co/t/elasticsearch-dropping-data-and-not-joining-after-split-brain/11568 "2013-04-12T15:20:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Marcin](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Marcin](https://discuss.elastic.co/u/Marcin)
#### Post date: [April 12, 2013, 3:20pm UTC](https://discuss.elastic.co/t/elasticsearch-dropping-data-and-not-joining-after-split-brain/11568/1 "2013-04-12T15:20:15Z")

</div>

Hi All,

We have a cluster of 2 ElasticSearch nodes operating on production and  
handling data for various public transport information systems. It's  
working for about a year now, but from time to time one of the nodes turns  
yellow and is missing data, which causes serious issues for the clients and  
passangers (the requests that go to the yellow node are getting no results  
in response). In such case we restart the nodes and reindex which fixes the  
problem. But still, this is happening by average once per 2 weeks, so I  
wanted to ask for some help.

There also seems to be a problem with the logger, as for some days the log  
files are missing, which makes it more difficult to diagnose issues.

What we already found is that the nodes sometimes seem to be so busy, that  
pings between them are getting timeouts. Also from time to time one of the  
nodes removes the other from it's view (3 ping timeouts in a row), but  
usually they join shortly. However sometimes the nodes can't join, one of  
them has state yellow, and is

Sample logs are following:

node 0, 08/04/2013 - [https://gist.github.com/anonymous/5b1266482680a1f6d469](https://gist.github.com/anonymous/5b1266482680a1f6d469)  
node 0, 09/04/2013 - missing  
node 1, 08/04/2013 - [https://gist.github.com/anonymous/5e45f693428f646af2d7](https://gist.github.com/anonymous/5e45f693428f646af2d7)  
node 1, 09/04/2013 - [https://gist.github.com/anonymous/1587b09e2cd94b369004](https://gist.github.com/anonymous/1587b09e2cd94b369004)

We'd be thankful for any help,

Thanks  
Marcin

--  
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: ![Paul\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_smith/32/1323_2.png) [@Paul\_Smith](https://discuss.elastic.co/u/Paul_Smith)
#### Post date: [April 16, 2013, 3:35am UTC](https://discuss.elastic.co/t/elasticsearch-dropping-data-and-not-joining-after-split-brain/11568/2 "2013-04-16T03:35:10Z")

</div>

With only 2 nodes, you have no way to defend against a split brain. Using  
the minimum\_master\_nodes property, and a minimum of 3-nodes (odd-numbered  
required) you can defend against this case:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

though I still personally believe there is a problem with Zen and it's  
master election, see Issue #2117 and #2488, you're at least likely to be  
covered better than you are using minimum\_master\_nodes.

Paul

On 13 April 2013 01:20, Marcin [marcinsulski@gmail.com](mailto:marcinsulski@gmail.com) wrote:

> Hi All,
> 
> We have a cluster of 2 Elasticsearch nodes operating on production and  
> handling data for various public transport information systems. It's  
> working for about a year now, but from time to time one of the nodes turns  
> yellow and is missing data, which causes serious issues for the clients and  
> passangers (the requests that go to the yellow node are getting no results  
> in response). In such case we restart the nodes and reindex which fixes the  
> problem. But still, this is happening by average once per 2 weeks, so I  
> wanted to ask for some help.
> 
> There also seems to be a problem with the logger, as for some days the log  
> files are missing, which makes it more difficult to diagnose issues.
> 
> What we already found is that the nodes sometimes seem to be so busy, that  
> pings between them are getting timeouts. Also from time to time one of the  
> nodes removes the other from it's view (3 ping timeouts in a row), but  
> usually they join shortly. However sometimes the nodes can't join, one of  
> them has state yellow, and is
> 
> Sample logs are following:
> 
> node 0, 08/04/2013 -  
> [node 0: 08-04-2013 · GitHub](https://gist.github.com/anonymous/5b1266482680a1f6d469)  
> node 0, 09/04/2013 - missing  
> node 1, 08/04/2013 -  
> [node 1: 08-04-2013 · GitHub](https://gist.github.com/anonymous/5e45f693428f646af2d7)  
> node 1, 09/04/2013 -  
> [node 1: 09-04-2013 · GitHub](https://gist.github.com/anonymous/1587b09e2cd94b369004)
> 
> We'd be thankful for any help,
> 
> Thanks  
> Marcin
> 
> --  
> 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).

--  
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: ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)
#### Post date: [April 16, 2013, 6:28pm UTC](https://discuss.elastic.co/t/elasticsearch-dropping-data-and-not-joining-after-split-brain/11568/3 "2013-04-16T18:28:02Z")

</div>

Are you monitoring CPU and heap on the nodes? What happens to CPU and java  
heap just before nodes turn yellow?

On Monday, April 15, 2013 11:35:10 PM UTC-4, tallpsmith wrote:

> With only 2 nodes, you have no way to defend against a split brain. Using  
> the minimum\_master\_nodes property, and a minimum of 3-nodes (odd-numbered  
> required) you can defend against this case:
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/modules/discovery/zen/)
> 
> though I still personally believe there is a problem with Zen and it's  
> master election, see Issue #2117 and #2488, you're at least likely to be  
> covered better than you are using minimum\_master\_nodes.
> 
> Paul
> 
> On 13 April 2013 01:20, Marcin \<[marcin...@gmail.com](mailto:marcin...@gmail.com) \<javascript:\>\> wrote:
> 
> > Hi All,
> > 
> > We have a cluster of 2 Elasticsearch nodes operating on production and  
> > handling data for various public transport information systems. It's  
> > working for about a year now, but from time to time one of the nodes turns  
> > yellow and is missing data, which causes serious issues for the clients and  
> > passangers (the requests that go to the yellow node are getting no results  
> > in response). In such case we restart the nodes and reindex which fixes the  
> > problem. But still, this is happening by average once per 2 weeks, so I  
> > wanted to ask for some help.
> > 
> > There also seems to be a problem with the logger, as for some days the  
> > log files are missing, which makes it more difficult to diagnose issues.
> > 
> > What we already found is that the nodes sometimes seem to be so busy,  
> > that pings between them are getting timeouts. Also from time to time one of  
> > the nodes removes the other from it's view (3 ping timeouts in a row), but  
> > usually they join shortly. However sometimes the nodes can't join, one of  
> > them has state yellow, and is
> > 
> > Sample logs are following:
> > 
> > node 0, 08/04/2013 -  
> > [node 0: 08-04-2013 · GitHub](https://gist.github.com/anonymous/5b1266482680a1f6d469)  
> > node 0, 09/04/2013 - missing  
> > node 1, 08/04/2013 -  
> > [node 1: 08-04-2013 · GitHub](https://gist.github.com/anonymous/5e45f693428f646af2d7)  
> > node 1, 09/04/2013 -  
> > [node 1: 09-04-2013 · GitHub](https://gist.github.com/anonymous/1587b09e2cd94b369004)
> > 
> > We'd be thankful for any help,
> > 
> > Thanks  
> > Marcin
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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:40am UTC](https://discuss.elastic.co/t/elasticsearch-dropping-data-and-not-joining-after-split-brain/11568/4 "2017-07-06T02:40:52Z")

</div>


