# Node disconnecting randomly

**URL:** <https://discuss.elastic.co/t/node-disconnecting-randomly/265085>\
**Category:** Elasticsearch\
**Created:** [February 22, 2021, 3:10pm UTC](https://discuss.elastic.co/t/node-disconnecting-randomly/265085 "2021-02-22T15:10:45Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![DENMODSupport](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/denmodsupport/32/67186_2.png) [@DENMODSupport](https://discuss.elastic.co/u/DENMODSupport)\
**Post date:** [March 30, 2021, 3:33pm UTC](https://discuss.elastic.co/t/node-disconnecting-randomly/265085/21 "2021-03-30T15:33:07Z")

</div>

> [@dadoonet](#):
>
> Are you going to run Elasticsearch by yourself on EC2 instances and manage that?

No, it will be elastic cloud only

---

<div class="post-metadata">

**Author:** ![DENMODSupport](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/denmodsupport/32/67186_2.png) [@DENMODSupport](https://discuss.elastic.co/u/DENMODSupport)\
**Post date:** [March 30, 2021, 3:34pm UTC](https://discuss.elastic.co/t/node-disconnecting-randomly/265085/22 "2021-03-30T15:34:02Z")

</div>

> [@DENMODSupport](#):
>
> We are in the process of migrating the Elasticsearch to AWS.

Our application development is working on migrating our on Prem elasticsearch to elastic cloud

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 30, 2021, 8:30pm UTC](https://discuss.elastic.co/t/node-disconnecting-randomly/265085/23 "2021-03-30T20:30:59Z")

</div>

Which option did you choose?

> - Index your data from the original source, which is the simplest method and provides the greatest flexibility for the Elasticsearch version and ingestion method.
> - Reindex from a remote cluster, which rebuilds the index from scratch.
> - Restore from a snapshot, which copies the existing indices.

Also, I think that if you chose the platinum level (or the gold level) for your cloud offer, you can ask the support for help on that migration.

I don't think that you need to change the existing values for `net.ipv4.*` settings.

---

<div class="post-metadata">

**Author:** ![DENMODSupport](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/denmodsupport/32/67186_2.png) [@DENMODSupport](https://discuss.elastic.co/u/DENMODSupport)\
**Post date:** [April 1, 2021, 2:58am UTC](https://discuss.elastic.co/t/node-disconnecting-randomly/265085/24 "2021-04-01T02:58:30Z")

</div>

> [@dadoonet](#):
>
> Reindex from a remote cluster, which rebuilds the index from scratch

I think development chosen this method for migrating data from old ELK cluster to the new one

also when i tried to set the below keep alive settings in old ELK cluster , i was unable to start the Elasticsearch service. Could you please help me on this?

Keep alive settings:  
net.ipv4.tcp\_keepalive\_time = 600  
net.ipv4.tcp\_keepalive\_intvl = 60  
net.ipv4.tcp\_keepalive\_probes = 20

Error:  
 ![ELK_error.PNG](https://us1.discourse-cdn.com/elastic/original/3X/5/6/5680b64d0e5c5aed1e96c3c4bfec722cc11eb0e7.jpeg)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 1, 2021, 3:19am UTC](https://discuss.elastic.co/t/node-disconnecting-randomly/265085/25 "2021-04-01T03:19:52Z")

</div>

Why do you want to change those settings?  
Is that written in the documentation?

I don't see those settings in our docs.  
May be it's not an elasticsearch setting but a jvm setting?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [April 1, 2021, 4:10am UTC](https://discuss.elastic.co/t/node-disconnecting-randomly/265085/26 "2021-04-01T04:10:53Z")

</div>

> [@DENMODSupport](#):
>
> Keep alive settings:  
> net.ipv4.tcp\_keepalive\_time = 600  
> net.ipv4.tcp\_keepalive\_intvl = 60  
> net.ipv4.tcp\_keepalive\_probes = 20

These settings are not elasticsearch settings, they are system settings that only apply to Linux systems

Based on the image you shared, you are running elasticsearch on Windows, if you put these settings in your `elasticsearch.yml` it won't start because the service does not know anything about these settings.

---

<div class="post-metadata">

**Author:** ![DENMODSupport](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/denmodsupport/32/67186_2.png) [@DENMODSupport](https://discuss.elastic.co/u/DENMODSupport)\
**Post date:** [April 1, 2021, 4:45am UTC](https://discuss.elastic.co/t/node-disconnecting-randomly/265085/27 "2021-04-01T04:45:48Z")

</div>

> [@leandrojmp](#):
>
> These settings are not elasticsearch settings, they are system settings that only apply to Linux systems

Please help me how we can set this settings in the system

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [April 1, 2021, 5:20am UTC](https://discuss.elastic.co/t/node-disconnecting-randomly/265085/28 "2021-04-01T05:20:07Z")

</div>

These settings does not exists on Windows, they are Linux only, you would need to look on how to tune the tcp keepalive on Windows.

Anyway, I do not think this is your problem, you need to share what was already asked in this thread, share your full elasticsearch logs to help understand what is happening, share more information about your nodes, are they VMs or Physical? How much memory does each system have? How much memory is configured to be used in the Java HEAP?

It looks that your problem could be related to your infrastructure/network, but it is really hard to troubleshoot it without more information.

I also suggest that you follow what was already said in this thread and use **3** nodes as master-eligible and set the minimum\_master\_nodes to **2**.

---

<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:** [April 29, 2021, 5:20am UTC](https://discuss.elastic.co/t/node-disconnecting-randomly/265085/29 "2021-04-29T05:20:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

[Previous page](https://discuss.elastic.co/t/node-disconnecting-randomly/265085.md?page=1)
