# Tree node clustrering master\_not\_discovered\_exception issue

**URL:** <https://discuss.elastic.co/t/tree-node-clustrering-master-not-discovered-exception-issue/286604>\
**Category:** Elasticsearch\
**Created:** [October 13, 2021, 9:58am UTC](https://discuss.elastic.co/t/tree-node-clustrering-master-not-discovered-exception-issue/286604 "2021-10-13T09:58:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Panahian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali_panahian/32/95802_2.png) [@Ali\_Panahian](https://discuss.elastic.co/u/Ali_Panahian)\
**Post date:** [October 13, 2021, 9:58am UTC](https://discuss.elastic.co/t/tree-node-clustrering-master-not-discovered-exception-issue/286604/1 "2021-10-13T09:58:52Z")

</div>

i have tree node cluster of ES, the issue is:

- when i stop one node the other nodes work fine and discover master node and everything works fine, but when is stop 2 node, the last one return master\_not\_discovered\_exception error  
all node has same config:

```auto
  elasticsearch-01:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0
    container_name: elasticsearch-01
    restart: always
    environment:
      - node.name=elasticsearch-01
      - discovery.seed_hosts=elasticsearch-01,elasticsearch-02,elasticsearch-03
      - cluster.initial_master_nodes=elasticsearch-01,elasticsearch-02,elasticsearch-03
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - /c/tpg/docker/volumes/elasticsearch/elasticsearch-01/usr/share/elasticsearch/data:/usr/share/elasticsearch/data
      #- /c/tpg/docker/volumes/elasticsearch/elasticsearch-01/etc/sysctl.conf:/etc/sysctl.conf
      - /c/tpg/docker/volumes/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml      
    ports:
      - 9200:9200
    networks:
      - elastic
elsticsearch-02:
     ...
elaasticsearch-03:
   ...
volumes:
  data01:
    driver: local
  data02:
    driver: local
  data03:
    driver: local

networks:
  elastic:
    driver: bridge

```

Elasticsearch.yml config:

```auto
discovery.zen.minimum_master_nodes: 1
cluster.name: elasticsearch-cluster
network.host: 0.0.0.0

```

---

<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:** [October 13, 2021, 10:35am UTC](https://discuss.elastic.co/t/tree-node-clustrering-master-not-discovered-exception-issue/286604/2 "2021-10-13T10:35:37Z")

</div>

A majority of master eligible nodes must be available in order to elect a master, so 2 out if 3 nodes need to be available for a functioning cluster.

---

<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:** [November 10, 2021, 10:36am UTC](https://discuss.elastic.co/t/tree-node-clustrering-master-not-discovered-exception-issue/286604/3 "2021-11-10T10:36:05Z")

</div>

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