# Periodic disconnection of same data nodes

**URL:** https://discuss.elastic.co/t/periodic-disconnection-of-same-data-nodes/338197
**Category:** Elasticsearch
**Created:** [July 12, 2023, 9:29am UTC](https://discuss.elastic.co/t/periodic-disconnection-of-same-data-nodes/338197 "2023-07-12T09:29:53Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![alissan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alissan/32/101448_2.png) [@alissan](https://discuss.elastic.co/u/alissan)
#### Post date: [July 12, 2023, 9:29am UTC](https://discuss.elastic.co/t/periodic-disconnection-of-same-data-nodes/338197/1 "2023-07-12T09:29:53Z")

</div>

Hello,

I have a cluster with 3 master, 40 data nodes (d1,d2,...,d40).  
First 5 data nodes have voting only master role.

Only the following data nodes have periodic abnormal behavior:

**d11,d12,d13,d14,d15,d16,d17,d21,d22**

These nodes disconnect from cluster every **~65** mins and rejoin after **~10** mins.

This chart for node counts by time (Jul 1-11):  
High values indicate the number of nodes that should be (40), low values after the nodes are disconnected (31).

 ![es_node_counts](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91107f875dac2c41a99d4207ffd2d959b9c524f8.png)

This chart for minute difference between node counts change times (Jul 1-11):  
High values (~65 mins) show the time they are connected, low times (~11 mins) indicate the time they are disconnected.

 ![es_node_counts_diffs](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a82668f381f05f281fbfef5f7520b4ae24ed3879.png)

elasticsearch.yml and jvm.options files are same for all data nodes.

Before disconnecting, the following error log occurs in master node log file:

`[2023-07-12T00:10:12,946][ERROR][o.e.x.m.c.i.IndexStatsCollector] [m01] collector [index-stats] timed out when collecting data: nodes [Hs20tBbARLmfVIwfl_uq6g, aZFlTvfKR3KgoAwa9gHdLA, 4_Lx62u9Qsqwbzwz0A496Q, OJQBrR0URo2R95j7epmyag, CT0jbNdlQsypPonefjrrVw, wDIuVUurTZyfTbd-KZUkaw, TYepUP6qQpWbpXZQax8K5Q, wfUp9qdXQsqysmrQ1Bsl6A, UdKxMlRcTASjVujQr9EM4w] did not respond within [10s]`

Config files and stats are [here](https://github.com/alissan/logs/tree/main/es_node_disconnection).

Note: In elasticsearch.yml file, discovery.seed\_hosts value have 48 item, because i'm planning to add 5 new data nodes but installation not completed.

I'm collecting node counts for every mins. You can see this data in **number\_of\_data\_nodes\_2023.07.log** file.

Also i have disconnected nodes list by minute in **disconnected\_nodes\_2023.07.log** file.

Where should i check to fix this problem?

Thanks.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [July 12, 2023, 10:01am UTC](https://discuss.elastic.co/t/periodic-disconnection-of-same-data-nodes/338197/2 "2023-07-12T10:01:53Z")

</div>

> [@alissan](#):
>
> First 5 data nodes have voting only master role.

This does not make any sense as you have 3 master eligible nodes. What is the rationale behind this?

You should in my opinion never have more than one voting only master node as it is designed to act as a tiebreaker and only if you have an even number of master eligible nodes.

I would recommend making these normal data nodes and see if it has any effect.

Also, what. is the specification of the cluster in terms of hardware and type of storage used? Which version of Elasticsearch are you using?

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [July 12, 2023, 10:17am UTC](https://discuss.elastic.co/t/periodic-disconnection-of-same-data-nodes/338197/3 "2023-07-12T10:17:36Z")

</div>

> [@alissan](#):
>
> Where should i check to fix this problem?

See these docs:

> **[Cluster fault detection | Elasticsearch Guide \[8.6\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/cluster-fault-detection.html#cluster-fault-detection-troubleshooting)**

---

<div class="post-metadata">

### Author: ![alissan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alissan/32/101448_2.png) [@alissan](https://discuss.elastic.co/u/alissan)
#### Post date: [July 12, 2023, 1:01pm UTC](https://discuss.elastic.co/t/periodic-disconnection-of-same-data-nodes/338197/4 "2023-07-12T13:01:52Z")

</div>

Hi Christian,

> [@Christian\_Dahlqvist](#):
>
> This does not make any sense as you have 3 master eligible nodes. What is the rationale behind this?

I've seen in a document that no more than half of the master nodes should be shut down. This may cause data loss.  
For this reason, I configured 5 data nodes as voting only masters.  
If 2 master servers are accidentally shut down, the cluster may fail.

Is this information no longer valid?

master nodes: physical machines  
data nodes: virtual machines on 3 different vmware hosts  
disks: ssd, connected with fiber channel  
elastic version: 8.6.2

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [July 12, 2023, 1:25pm UTC](https://discuss.elastic.co/t/periodic-disconnection-of-same-data-nodes/338197/5 "2023-07-12T13:25:14Z")

</div>

If you need to be ble to handle the loss of 2 master eligible nodes at any point in time you need to have 5 master-eligible nodes, out of which at most one should be voting-only.

Having 5 voting-only master nodes does IMHO not make any sense.

---

<div class="post-metadata">

### Author: ![alissan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alissan/32/101448_2.png) [@alissan](https://discuss.elastic.co/u/alissan)
#### Post date: [July 12, 2023, 3:01pm UTC](https://discuss.elastic.co/t/periodic-disconnection-of-same-data-nodes/338197/6 "2023-07-12T15:01:53Z")

</div>

I made the data nodes with voting only to data only and the problem continues.  
I'm checking the cluster fault detection document.

---

<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: [August 9, 2023, 3:02pm UTC](https://discuss.elastic.co/t/periodic-disconnection-of-same-data-nodes/338197/7 "2023-08-09T15:02:04Z")

</div>

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