# Multi data-center nodes going yellow

**URL:** <https://discuss.elastic.co/t/multi-data-center-nodes-going-yellow/8300>\
**Category:** Elasticsearch\
**Created:** [July 3, 2012, 6:53pm UTC](https://discuss.elastic.co/t/multi-data-center-nodes-going-yellow/8300 "2012-07-03T18:53:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dusty\_Doris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dusty_doris/32/2441_2.png) [@Dusty\_Doris](https://discuss.elastic.co/u/Dusty_Doris)\
**Post date:** [July 3, 2012, 6:53pm UTC](https://discuss.elastic.co/t/multi-data-center-nodes-going-yellow/8300/1 "2012-07-03T18:53:57Z")

</div>

Right now I have two nodes in a cluster that are separated physically  
between two data centers. We just set this up and are testing right now,  
looking to make this work.

Problem:

My nodes are setup with unicast and they stop talking to each other every  
couple of hours and turn yellow. A restart of either instance fixes this  
and turns them green.

A poll to the status API shows:

{  
"cluster\_name" : "itmSearch0",  
"status" : "yellow",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 5,  
"active\_shards" : 5,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 5  
}

The log files show this when they turn yellow. You can see I did a restart  
at 11:54 and they went green. Then at 14:06, they went yellow.

Node1  
[2012-07-03 11:54:33,742][INFO][transport] [Atom-Smasher]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address  
{inet[/10.240.110.170:9300]}  
[2012-07-03 11:54:37,218][INFO][cluster.service] [Atom-Smasher]  
detected\_master [Freak of  
Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]], added {[Freak  
of Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]],}, reason:  
zen-disco-receive(from master [[Freak of  
Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]])  
[2012-07-03 11:54:37,227][INFO][discovery] [Atom-Smasher]  
itmSearch0/lcWP38JcTXK5UlQlFl-9bg  
[2012-07-03 11:54:37,231][INFO][http] [Atom-Smasher]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address  
{inet[/10.240.110.170:9200]}  
[2012-07-03 11:54:37,231][INFO][node] [Atom-Smasher]  
{0.19.7}[26287]: started  
[2012-07-03 14:06:51,192][INFO][discovery.zen] [Atom-Smasher]  
master\_left [[Freak of  
Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]], reason [do  
not exists on master, act as master failure]  
[2012-07-03 14:06:51,193][INFO][cluster.service] [Atom-Smasher]  
master {new  
[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],  
previous [Freak of  
Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]}, removed  
{[Freak of Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]],},  
reason: zen-disco-master\_failed ([Freak of  
Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]])

Node2  
[2012-07-03 11:54:29,811][INFO][cluster.service] [Freak of  
Science] removed  
{[Fin][T-R-mth1T8CmSfuyDIf0lQ][inet[/10.240.110.170:9300]],}, reason:  
zen-disco-node\_left([Fin][T-R-mth1T8CmSfuyDIf0lQ][inet[/10.240.110.170:9300]])  
[2012-07-03 11:54:37,178][INFO][cluster.service] [Freak of  
Science] added  
{[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],},  
reason: zen-disco-receive(join from  
node[[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]]])  
[2012-07-03 14:06:50,751][INFO][cluster.service] [Freak of  
Science] removed  
{[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],},  
reason:  
zen-disco-node\_failed([Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]]),  
reason transport disconnected (with verified connect)

Here is my config file. This is the same on both.

cluster.name: itmSearch0  
path.data: /data/elasticsearch/data  
path.work: /data/elasticsearch/tmp  
path.logs: /data/elasticsearch/logs  
discovery.zen.ping.multicast.enabled: true  
discovery.zen.ping.unicast.hosts: ["search1.cvg", "search1.phx"]  
transport.tcp.port: 9300  
http.port: 9200

Any ideas on what I can do to prevent them from turning yellow? When they  
are in the yellow state I can query the other server at that time, so the  
connectivity is still there. I originally had multicast.enabled to false,  
but tried enablling that to true just in case it made a difference (just a  
shot in the dark as that doesn't seem like it should).

Configuration:

I have the default setup of number of replicas and shards at 1, 5. I'm  
thinking that this doesn't make sense for what I want. Should I have it  
setup so that there are no shards? Will that cause the data to basically  
be duplicated?

Also, I'm thinking about putting haproxy (or similar) in front of each  
node, so they clients can simply use the TCPTransport connection and I will  
set them up to hit the respective local node first and then failover to the  
remote node. That way under ideal circumstances they will not have to go  
across the WAN.

Can this work? Or should I have two separate clusters on each datacenter  
and somehow replicate the data between the two? Is there any current  
documentation on this?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![Dusty\_Doris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dusty_doris/32/2441_2.png) [@Dusty\_Doris](https://discuss.elastic.co/u/Dusty_Doris)\
**Post date:** [July 4, 2012, 12:41am UTC](https://discuss.elastic.co/t/multi-data-center-nodes-going-yellow/8300/2 "2012-07-04T00:41:23Z")

</div>

I watched this fantastic video: [http://vimeo.com/26710663#](http://vimeo.com/26710663#) and now I  
understand the shard/replica concepts better now. I also see my question  
about 1/5 shard can be ignored.

I am still having issues with the two node cluster going yellow  
periodically, if anyone has tips on that I'd appreciate it. Until  
multi-datacenter awareness is added, it looks like I'll be stuck with my  
clients needed to go over the connection between the two. Luckily we don't  
seem to have problems with that. But, I would like to keep those nodes in  
green if possible.

Thanks for any tips.

On Tuesday, July 3, 2012 2:53:57 PM UTC-4, Dusty Doris wrote:

> Right now I have two nodes in a cluster that are separated physically  
> between two data centers. We just set this up and are testing right now,  
> looking to make this work.
> 
> Problem:
> 
> My nodes are setup with unicast and they stop talking to each other every  
> couple of hours and turn yellow. A restart of either instance fixes this  
> and turns them green.
> 
> A poll to the status API shows:
> 
> {  
> "cluster\_name" : "itmSearch0",  
> "status" : "yellow",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 5,  
> "active\_shards" : 5,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 5  
> }
> 
> The log files show this when they turn yellow. You can see I did a  
> restart at 11:54 and they went green. Then at 14:06, they went yellow.
> 
> Node1  
> [2012-07-03 11:54:33,742][INFO][transport] [Atom-Smasher]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/  
> 10.240.110.170:9300]}  
> [2012-07-03 11:54:37,218][INFO][cluster.service] [Atom-Smasher]  
> detected\_master [Freak of  
> Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]], added {[Freak  
> of Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]],}, reason:  
> zen-disco-receive(from master [[Freak of  
> Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]])  
> [2012-07-03 11:54:37,227][INFO][discovery] [Atom-Smasher]  
> itmSearch0/lcWP38JcTXK5UlQlFl-9bg  
> [2012-07-03 11:54:37,231][INFO][http] [Atom-Smasher]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/  
> 10.240.110.170:9200]}  
> [2012-07-03 11:54:37,231][INFO][node] [Atom-Smasher]  
> {0.19.7}[26287]: started  
> [2012-07-03 14:06:51,192][INFO][discovery.zen] [Atom-Smasher]  
> master\_left [[Freak of  
> Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]], reason [do  
> not exists on master, act as master failure]  
> [2012-07-03 14:06:51,193][INFO][cluster.service] [Atom-Smasher]  
> master {new  
> [Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],  
> previous [Freak of  
> Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]}, removed  
> {[Freak of Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]],},  
> reason: zen-disco-master\_failed ([Freak of  
> Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]])
> 
> Node2  
> [2012-07-03 11:54:29,811][INFO][cluster.service] [Freak of  
> Science] removed  
> {[Fin][T-R-mth1T8CmSfuyDIf0lQ][inet[/10.240.110.170:9300]],}, reason:  
> zen-disco-node\_left([Fin][T-R-mth1T8CmSfuyDIf0lQ][inet[/10.240.110.170:9300]])  
> [2012-07-03 11:54:37,178][INFO][cluster.service] [Freak of  
> Science] added  
> {[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],},  
> reason: zen-disco-receive(join from  
> node[[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]]])  
> [2012-07-03 14:06:50,751][INFO][cluster.service] [Freak of  
> Science] removed  
> {[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],},  
> reason:  
> zen-disco-node\_failed([Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]]),  
> reason transport disconnected (with verified connect)
> 
> Here is my config file. This is the same on both.
> 
> cluster.name: itmSearch0  
> path.data: /data/elasticsearch/data  
> path.work: /data/elasticsearch/tmp  
> path.logs: /data/elasticsearch/logs  
> discovery.zen.ping.multicast.enabled: true  
> discovery.zen.ping.unicast.hosts: ["search1.cvg", "search1.phx"]  
> transport.tcp.port: 9300  
> http.port: 9200
> 
> Any ideas on what I can do to prevent them from turning yellow? When they  
> are in the yellow state I can query the other server at that time, so the  
> connectivity is still there. I originally had multicast.enabled to false,  
> but tried enablling that to true just in case it made a difference (just a  
> shot in the dark as that doesn't seem like it should).
> 
> Configuration:
> 
> I have the default setup of number of replicas and shards at 1, 5. I'm  
> thinking that this doesn't make sense for what I want. Should I have it  
> setup so that there are no shards? Will that cause the data to basically  
> be duplicated?
> 
> Also, I'm thinking about putting haproxy (or similar) in front of each  
> node, so they clients can simply use the TCPTransport connection and I will  
> set them up to hit the respective local node first and then failover to the  
> remote node. That way under ideal circumstances they will not have to go  
> across the WAN.
> 
> Can this work? Or should I have two separate clusters on each datacenter  
> and somehow replicate the data between the two? Is there any current  
> documentation on this?
> 
> Thanks for your help!

---

<div class="post-metadata">

**Author:** ![gepo](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@gepo](https://discuss.elastic.co/u/gepo)\
**Post date:** [September 12, 2012, 7:44am UTC](https://discuss.elastic.co/t/multi-data-center-nodes-going-yellow/8300/3 "2012-09-12T07:44:24Z")

</div>

I am facing same "problem" with how to set up ES in a two datacenters.

Would be interesting to know how you finally solved it !!!

kr  
Georges

Den tisdagen den 3:e juli 2012 kl. 20:53:57 UTC+2 skrev Dusty Doris:

> Right now I have two nodes in a cluster that are separated physically  
> between two data centers. We just set this up and are testing right now,  
> looking to make this work.
> 
> Problem:
> 
> My nodes are setup with unicast and they stop talking to each other every  
> couple of hours and turn yellow. A restart of either instance fixes this  
> and turns them green.
> 
> A poll to the status API shows:
> 
> {  
> "cluster\_name" : "itmSearch0",  
> "status" : "yellow",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 5,  
> "active\_shards" : 5,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 5  
> }
> 
> The log files show this when they turn yellow. You can see I did a  
> restart at 11:54 and they went green. Then at 14:06, they went yellow.
> 
> Node1  
> [2012-07-03 11:54:33,742][INFO][transport] [Atom-Smasher]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/  
> 10.240.110.170:9300]}  
> [2012-07-03 11:54:37,218][INFO][cluster.service] [Atom-Smasher]  
> detected\_master [Freak of  
> Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]], added {[Freak  
> of Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]],}, reason:  
> zen-disco-receive(from master [[Freak of  
> Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]])  
> [2012-07-03 11:54:37,227][INFO][discovery] [Atom-Smasher]  
> itmSearch0/lcWP38JcTXK5UlQlFl-9bg  
> [2012-07-03 11:54:37,231][INFO][http] [Atom-Smasher]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/  
> 10.240.110.170:9200]}  
> [2012-07-03 11:54:37,231][INFO][node] [Atom-Smasher]  
> {0.19.7}[26287]: started  
> [2012-07-03 14:06:51,192][INFO][discovery.zen] [Atom-Smasher]  
> master\_left [[Freak of  
> Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]], reason [do  
> not exists on master, act as master failure]  
> [2012-07-03 14:06:51,193][INFO][cluster.service] [Atom-Smasher]  
> master {new  
> [Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],  
> previous [Freak of  
> Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]}, removed  
> {[Freak of Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]],},  
> reason: zen-disco-master\_failed ([Freak of  
> Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]])
> 
> Node2  
> [2012-07-03 11:54:29,811][INFO][cluster.service] [Freak of  
> Science] removed  
> {[Fin][T-R-mth1T8CmSfuyDIf0lQ][inet[/10.240.110.170:9300]],}, reason:  
> zen-disco-node\_left([Fin][T-R-mth1T8CmSfuyDIf0lQ][inet[/10.240.110.170:9300]])  
> [2012-07-03 11:54:37,178][INFO][cluster.service] [Freak of  
> Science] added  
> {[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],},  
> reason: zen-disco-receive(join from  
> node[[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]]])  
> [2012-07-03 14:06:50,751][INFO][cluster.service] [Freak of  
> Science] removed  
> {[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],},  
> reason:  
> zen-disco-node\_failed([Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]]),  
> reason transport disconnected (with verified connect)
> 
> Here is my config file. This is the same on both.
> 
> cluster.name: itmSearch0  
> path.data: /data/elasticsearch/data  
> path.work: /data/elasticsearch/tmp  
> path.logs: /data/elasticsearch/logs  
> discovery.zen.ping.multicast.enabled: true  
> discovery.zen.ping.unicast.hosts: ["search1.cvg", "search1.phx"]  
> transport.tcp.port: 9300  
> http.port: 9200
> 
> Any ideas on what I can do to prevent them from turning yellow? When they  
> are in the yellow state I can query the other server at that time, so the  
> connectivity is still there. I originally had multicast.enabled to false,  
> but tried enablling that to true just in case it made a difference (just a  
> shot in the dark as that doesn't seem like it should).
> 
> Configuration:
> 
> I have the default setup of number of replicas and shards at 1, 5. I'm  
> thinking that this doesn't make sense for what I want. Should I have it  
> setup so that there are no shards? Will that cause the data to basically  
> be duplicated?
> 
> Also, I'm thinking about putting haproxy (or similar) in front of each  
> node, so they clients can simply use the TCPTransport connection and I will  
> set them up to hit the respective local node first and then failover to the  
> remote node. That way under ideal circumstances they will not have to go  
> across the WAN.
> 
> Can this work? Or should I have two separate clusters on each datacenter  
> and somehow replicate the data between the two? Is there any current  
> documentation on this?
> 
> Thanks for your help!

--

---

<div class="post-metadata">

**Author:** ![Dusty\_Doris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dusty_doris/32/2441_2.png) [@Dusty\_Doris](https://discuss.elastic.co/u/Dusty_Doris)\
**Post date:** [September 12, 2012, 11:41am UTC](https://discuss.elastic.co/t/multi-data-center-nodes-going-yellow/8300/4 "2012-09-12T11:41:17Z")

</div>

It turns out that it was a tcp timeout problem for me.

I added a file to /etc/sysctl.d/ that contained

net.ipv4.tcp\_keepalive\_time = 1800

On Wednesday, September 12, 2012 3:44:24 AM UTC-4, gepo wrote:

> I am facing same "problem" with how to set up ES in a two datacenters.
> 
> Would be interesting to know how you finally solved it !!!
> 
> kr  
> Georges
> 
> Den tisdagen den 3:e juli 2012 kl. 20:53:57 UTC+2 skrev Dusty Doris:
> 
> > Right now I have two nodes in a cluster that are separated physically  
> > between two data centers. We just set this up and are testing right now,  
> > looking to make this work.
> > 
> > Problem:
> > 
> > My nodes are setup with unicast and they stop talking to each other every  
> > couple of hours and turn yellow. A restart of either instance fixes this  
> > and turns them green.
> > 
> > A poll to the status API shows:
> > 
> > {  
> > "cluster\_name" : "itmSearch0",  
> > "status" : "yellow",  
> > "timed\_out" : false,  
> > "number\_of\_nodes" : 1,  
> > "number\_of\_data\_nodes" : 1,  
> > "active\_primary\_shards" : 5,  
> > "active\_shards" : 5,  
> > "relocating\_shards" : 0,  
> > "initializing\_shards" : 0,  
> > "unassigned\_shards" : 5  
> > }
> > 
> > The log files show this when they turn yellow. You can see I did a  
> > restart at 11:54 and they went green. Then at 14:06, they went yellow.
> > 
> > Node1  
> > [2012-07-03 11:54:33,742][INFO][transport]  
> > [Atom-Smasher] bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address  
> > {inet[/10.240.110.170:9300]}  
> > [2012-07-03 11:54:37,218][INFO][cluster.service]  
> > [Atom-Smasher] detected\_master [Freak of  
> > Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]], added {[Freak  
> > of Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]],}, reason:  
> > zen-disco-receive(from master [[Freak of  
> > Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]])  
> > [2012-07-03 11:54:37,227][INFO][discovery]  
> > [Atom-Smasher] itmSearch0/lcWP38JcTXK5UlQlFl-9bg  
> > [2012-07-03 11:54:37,231][INFO][http]  
> > [Atom-Smasher] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address  
> > {inet[/10.240.110.170:9200]}  
> > [2012-07-03 11:54:37,231][INFO][node]  
> > [Atom-Smasher] {0.19.7}[26287]: started  
> > [2012-07-03 14:06:51,192][INFO][discovery.zen]  
> > [Atom-Smasher] master\_left [[Freak of  
> > Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]], reason [do  
> > not exists on master, act as master failure]  
> > [2012-07-03 14:06:51,193][INFO][cluster.service]  
> > [Atom-Smasher] master {new  
> > [Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],  
> > previous [Freak of  
> > Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]]}, removed  
> > {[Freak of Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]],},  
> > reason: zen-disco-master\_failed ([Freak of  
> > Science][9UmzsosBQJ6\_NsM69Bka4Q][inet[/10.240.176.170:9300]])
> > 
> > Node2  
> > [2012-07-03 11:54:29,811][INFO][cluster.service] [Freak of  
> > Science] removed  
> > {[Fin][T-R-mth1T8CmSfuyDIf0lQ][inet[/10.240.110.170:9300]],}, reason:  
> > zen-disco-node\_left([Fin][T-R-mth1T8CmSfuyDIf0lQ][inet[/10.240.110.170:9300]])  
> > [2012-07-03 11:54:37,178][INFO][cluster.service] [Freak of  
> > Science] added  
> > {[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],},  
> > reason: zen-disco-receive(join from  
> > node[[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]]])  
> > [2012-07-03 14:06:50,751][INFO][cluster.service] [Freak of  
> > Science] removed  
> > {[Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]],},  
> > reason:  
> > zen-disco-node\_failed([Atom-Smasher][lcWP38JcTXK5UlQlFl-9bg][inet[/10.240.110.170:9300]]),  
> > reason transport disconnected (with verified connect)
> > 
> > Here is my config file. This is the same on both.
> > 
> > cluster.name: itmSearch0  
> > path.data: /data/elasticsearch/data  
> > path.work: /data/elasticsearch/tmp  
> > path.logs: /data/elasticsearch/logs  
> > discovery.zen.ping.multicast.enabled: true  
> > discovery.zen.ping.unicast.hosts: ["search1.cvg", "search1.phx"]  
> > transport.tcp.port: 9300  
> > http.port: 9200
> > 
> > Any ideas on what I can do to prevent them from turning yellow? When  
> > they are in the yellow state I can query the other server at that time, so  
> > the connectivity is still there. I originally had multicast.enabled to  
> > false, but tried enablling that to true just in case it made a difference  
> > (just a shot in the dark as that doesn't seem like it should).
> > 
> > Configuration:
> > 
> > I have the default setup of number of replicas and shards at 1, 5. I'm  
> > thinking that this doesn't make sense for what I want. Should I have it  
> > setup so that there are no shards? Will that cause the data to basically  
> > be duplicated?
> > 
> > Also, I'm thinking about putting haproxy (or similar) in front of each  
> > node, so they clients can simply use the TCPTransport connection and I will  
> > set them up to hit the respective local node first and then failover to the  
> > remote node. That way under ideal circumstances they will not have to go  
> > across the WAN.
> > 
> > Can this work? Or should I have two separate clusters on each datacenter  
> > and somehow replicate the data between the two? Is there any current  
> > documentation on this?
> > 
> > Thanks for your help!

--

---

<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, 3:13am UTC](https://discuss.elastic.co/t/multi-data-center-nodes-going-yellow/8300/5 "2017-07-06T03:13:02Z")

</div>


