# Cluster Changes to speed up master detection

**URL:** <https://discuss.elastic.co/t/cluster-changes-to-speed-up-master-detection/222116>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [March 4, 2020, 4:28pm UTC](https://discuss.elastic.co/t/cluster-changes-to-speed-up-master-detection/222116 "2020-03-04T16:28:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkogav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/darkogav/32/69654_2.png) [@darkogav](https://discuss.elastic.co/u/darkogav)\
**Post date:** [March 4, 2020, 4:28pm UTC](https://discuss.elastic.co/t/cluster-changes-to-speed-up-master-detection/222116/1 "2020-03-04T16:28:31Z")

</div>

Hello, I have a 4 node cluster on elasticsearch. I am using 7.6.0

Every time I made a change to docker compose and need to rebuild it node, it keeps losing track of where is the master. It takes a few hours for it to go back to green.

Everything is manually hard coded. including IPs and certificates.

is there a setting I need to tweak to allow for quick changes in cluster?

Below is be docker compose section. It pretty much follows the directive of whats on the support docs of how to build it.

* * *

```
  - node.name=es02
  - node.ingest=true
  - cluster.name=cluster01
  - discovery.seed_hosts=es01,es03,es04
  - cluster.initial_master_nodes=es01,es02,es03,es04
  - ELASTIC_USERNAME=$ELASTIC_USERNAME
  - ELASTIC_PASSWORD=$ELASTIC_PASSWORD
  - bootstrap.memory_lock=true
  - xpack.license.self_generated.type=basic
  - xpack.security.enabled=true
  - xpack.security.http.ssl.enabled=true
  - xpack.security.http.ssl.key=$CERTS_DIR/es02/es02.key
  - xpack.security.http.ssl.certificate_authorities=$CERTS_DIR/ca/ca.crt
  - xpack.security.http.ssl.certificate=$CERTS_DIR/es02/es02.crt
  - xpack.security.transport.ssl.enabled=true
  - xpack.security.transport.ssl.verification_mode=certificate
  - xpack.security.transport.ssl.certificate_authorities=$CERTS_DIR/ca/ca.crt
  - xpack.security.transport.ssl.certificate=$CERTS_DIR/es02/es02.crt
  - xpack.security.transport.ssl.key=$CERTS_DIR/es02/es02.key
  - "ES_JAVA_OPTS=-Xms80g -Xmx80g"

```

* * *

---

<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 1, 2020, 4:28pm UTC](https://discuss.elastic.co/t/cluster-changes-to-speed-up-master-detection/222116/2 "2020-04-01T16:28:43Z")

</div>

Closed on April 1, 2020, 4:28pm UTC

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