# ES cluster replicated between Data Centers

**URL:** <https://discuss.elastic.co/t/es-cluster-replicated-between-data-centers/9066>\
**Category:** Elasticsearch\
**Created:** [September 19, 2012, 2:32pm UTC](https://discuss.elastic.co/t/es-cluster-replicated-between-data-centers/9066 "2012-09-19T14:32:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)\
**Post date:** [September 19, 2012, 2:32pm UTC](https://discuss.elastic.co/t/es-cluster-replicated-between-data-centers/9066/1 "2012-09-19T14:32:33Z")

</div>

Hello,  
I need to move my ES cluster to different DC with zero down time.  
My Idea was just to add a node on the other DC and when all data is  
replicated to there, shut down the original node, and use the new one. I  
assume that it will become a master once the original master will go down.  
Reading other's experience, I'm getting mixed fillings about all this.  
As of now, I'm trying to compile my todo list, one item will be to add a  
file to /etc/sysctl.d/ that contained net.ipv4.tcp\_keepalive\_time = 1800 to  
keep ES from beaching yellow.  
Does anybody has such experience? And could some one point to some possible  
problems/solutions related to the subject?

Thanks in advance,  
Eugene

--

---

<div class="post-metadata">

**Author:** ![Robin\_Verlangen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robin_verlangen/32/1542_2.png) [@Robin\_Verlangen](https://discuss.elastic.co/u/Robin_Verlangen)\
**Post date:** [September 19, 2012, 3:44pm UTC](https://discuss.elastic.co/t/es-cluster-replicated-between-data-centers/9066/2 "2012-09-19T15:44:14Z")

</div>

My suggestion in this case is pretty simple: test, test and test. If you  
setup 2 nodes, for example on Amazon EC2 (low cost, on demand), one filled.  
One not started. You start the other one. Wait for it to have replicated.  
Shut down the old one. Verify everything is there and working.

Another tip: backup everything on the old node and store it somewhere safe.

Just my 2 cents.

Best regards,

Robin Verlangen  
_Software engineer_  
\*  
\*  
W [http://www.robinverlangen.nl](http://www.robinverlangen.nl)  
E robin@us2.nl

Disclaimer: The information contained in this message and attachments is  
intended solely for the attention and use of the named addressee and may be  
confidential. If you are not the intended recipient, you are reminded that  
the information remains the property of the sender. You must not use,  
disclose, distribute, copy, print or rely on this e-mail. If you have  
received this message in error, please contact the sender immediately and  
irrevocably delete this message and any copies.

2012/9/19 Eugene Strokin [eugene@strokin.info](mailto:eugene@strokin.info)

> Hello,  
> I need to move my ES cluster to different DC with zero down time.  
> My Idea was just to add a node on the other DC and when all data is  
> replicated to there, shut down the original node, and use the new one. I  
> assume that it will become a master once the original master will go down.  
> Reading other's experience, I'm getting mixed fillings about all this.  
> As of now, I'm trying to compile my todo list, one item will be to add a  
> file to /etc/sysctl.d/ that contained net.ipv4.tcp\_keepalive\_time = 1800  
> to keep ES from beaching yellow.  
> Does anybody has such experience? And could some one point to some  
> possible problems/solutions related to the subject?
> 
> Thanks in advance,  
> Eugene
> 
> --

--

---

<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:12am UTC](https://discuss.elastic.co/t/es-cluster-replicated-between-data-centers/9066/3 "2017-07-06T03:12:16Z")

</div>

Closed on July 6, 2017, 3:12am UTC


