# Problem restarting cluster on 6.6.1

**URL:** <https://discuss.elastic.co/t/problem-restarting-cluster-on-6-6-1/194200>\
**Category:** Elasticsearch\
**Created:** [August 7, 2019, 9:51am UTC](https://discuss.elastic.co/t/problem-restarting-cluster-on-6-6-1/194200 "2019-08-07T09:51:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![punppis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/punppis/32/46041_2.png) [@punppis](https://discuss.elastic.co/u/punppis)\
**Post date:** [August 7, 2019, 9:51am UTC](https://discuss.elastic.co/t/problem-restarting-cluster-on-6-6-1/194200/1 "2019-08-07T09:51:30Z")

</div>

Elasticsearch 6.6.1

I have a 3-node cluster. 2 master+data, 1 data only. Our setup has been running ok for few months until I have to restart them for any reason.

The problem is that I have to restart the machines in seemingly randomly multiple times in order to beat "master not discovered" exception. Today there was even more strange situation when cluster health reported 2 nodes, then 3 nodes, then 2, then 3, etc. My configuration has been the same from the beginning. Today I spent an hour just restarting the service continuously until it just fixed itself and now I see recovering cluster with 3 nodes.

This is my configuration. I'm also open to suggestions about for VM specs for these machines. Each node is 2-core 8GB machine with jvm memory set to 4g with plans to scale them up as needed.

**esdata-0**  
cluster.name: "analytics-cluster"  
node.name: "esdata-0"  
path.logs: /var/log/elasticsearch  
path.data: /datadisks/disk1/elasticsearch/data  
discovery.zen.ping.unicast.hosts: ["esdata-0:9300","esdata-1:9300","esdata-2:9300"]  
node.master: true  
node.data: true  
discovery.zen.minimum\_master\_nodes: 2  
network.host: [_site_, _local_]  
node.max\_local\_storage\_nodes: 1  
node.attr.fault\_domain: 1  
node.attr.update\_domain: 1  
cluster.routing.allocation.awareness.attributes: fault\_domain,update\_domain  
xpack.license.self\_generated.type: trial  
xpack.security.enabled: true  
bootstrap.memory\_lock: true  
thread\_pool.index.queue\_size: 1000  
thread\_pool.write.queue\_size: 1000

**esdata-1**  
cluster.name: "analytics-cluster"  
node.name: "esdata-1"  
path.logs: /var/log/elasticsearch  
path.data: /datadisks/disk1/elasticsearch/data  
discovery.zen.ping.unicast.hosts: ["esdata-0:9300","esdata-1:9300","esdata-2:9300"]  
node.master: true  
node.data: true  
discovery.zen.minimum\_master\_nodes: 2  
network.host: [_site_, _local_]  
node.max\_local\_storage\_nodes: 1  
node.attr.fault\_domain: 0  
node.attr.update\_domain: 0  
cluster.routing.allocation.awareness.attributes: fault\_domain,update\_domain  
xpack.license.self\_generated.type: trial  
xpack.security.enabled: true  
bootstrap.memory\_lock: true  
thread\_pool.index.queue\_size: 1000  
thread\_pool.write.queue\_size: 1000

**esdata-2**  
cluster.name: "analytics-cluster"  
node.name: "esdata-2"  
path.logs: /var/log/elasticsearch  
path.data: /datadisks/disk1/elasticsearch/data  
discovery.zen.ping.unicast.hosts: ["esdata-0:9300","esdata-1:9300","esdata-2:9300"]  
node.master: false  
node.data: true  
discovery.zen.minimum\_master\_nodes: 2  
network.host: [_site_, _local_]  
node.max\_local\_storage\_nodes: 1  
node.attr.fault\_domain: 2  
node.attr.update\_domain: 2  
cluster.routing.allocation.awareness.attributes: fault\_domain,update\_domain  
xpack.license.self\_generated.type: trial  
xpack.security.enabled: true  
bootstrap.memory\_lock: true  
thread\_pool.index.queue\_size: 1000  
thread\_pool.write.queue\_size: 1000

---

<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:** [August 7, 2019, 11:22am UTC](https://discuss.elastic.co/t/problem-restarting-cluster-on-6-6-1/194200/2 "2019-08-07T11:22:35Z")

</div>

Can you share the logs from your failed attempts to get these nodes to form a cluster?

Also why do you have one of your three nodes set `node.master: false`? You need at least three master-eligible nodes to run a fault-tolerant cluster.

---

<div class="post-metadata">

**Author:** ![punppis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/punppis/32/46041_2.png) [@punppis](https://discuss.elastic.co/u/punppis)\
**Post date:** [August 31, 2019, 10:51am UTC](https://discuss.elastic.co/t/problem-restarting-cluster-on-6-6-1/194200/3 "2019-08-31T10:51:36Z")

</div>

For some reason I had one of the nodes as non-master-eligible. I changed it immediately after reading your comment and today one of our nodes crashed (suspecting out of memory but thats not the issue here). And now I have the same problem with 3 master-nodes: you can [see the status change](https://discuss.elastic.co/uploads/short-url/pIIQqnrvJvu5NEivzxEeHMShGZM.png) between 2/2 and 3/3 nodes all the time (few seconds apart)

Here is a log file: [https://pastebin.com/nuHhEPJi](https://pastebin.com/nuHhEPJi) (there was a LOT of logs caused by services trying to use the ES API and I tried to strip them out. hopefully I did not exclude anything important)

After a bunch of restart attempts the cluster started OK and is now working again. I would like to avoid this in the future. Shouldn't the cluster get back online after restarting just the failed node?

---

<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:** [September 28, 2019, 10:51am UTC](https://discuss.elastic.co/t/problem-restarting-cluster-on-6-6-1/194200/4 "2019-09-28T10:51:36Z")

</div>

Closed on September 28, 2019, 10:51am UTC

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