# Elasticsearch master slave configuration

**URL:** <https://discuss.elastic.co/t/elasticsearch-master-slave-configuration/147525>\
**Category:** Elasticsearch\
**Created:** [September 6, 2018, 8:01am UTC](https://discuss.elastic.co/t/elasticsearch-master-slave-configuration/147525 "2018-09-06T08:01:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kobesado](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@kobesado](https://discuss.elastic.co/u/kobesado)\
**Post date:** [September 6, 2018, 8:01am UTC](https://discuss.elastic.co/t/elasticsearch-master-slave-configuration/147525/1 "2018-09-06T08:01:55Z")

</div>

Hi,  
I'm trying to configuration a cluster with 1 Master node , 2 slave nodes. After restarting the service, master elascticseach.bat is okey but slave elascticseach.bat been getting the following error:  
[node\_154] not enough master nodes discovered during pinging (found [[]], but needed [-1]), pinging again

**Master elasticsearch.yml configuration ip:10.200.2.152**

cluster.name: project\_cluster  
node.name: mlpcare\_node\_152  
node.master: true  
node.data: true  
node.ingest: false  
bootstrap.memory\_lock: true  
discovery.zen.ping.unicast.hosts: ["ES152","ES153", "ES154"]

slave node config

**cluster.name: project\_cluster ip:10.200.2.153**  
node.name: node\_153  
node.master: false  
node.data: true  
node.ingest: false  
network.host: 0.0.0.0  
discovery.zen.ping.unicast.hosts: ["ES152","ES153", "ES154"]

**cluster.name: project\_cluster ip:10.200.2.154**  
node.name: node\_154  
node.master: false  
node.data: true  
node.ingest: false  
network.host: 0.0.0.0  
discovery.zen.ping.unicast.hosts: ["ES152","ES153", "ES154"]

hosts Same  
#127.0.0.1 localhost  
10.200.2.152 ES152  
10.200.2.153 ES153  
10.200.2.154 ES154

---

<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:** [September 6, 2018, 8:34am UTC](https://discuss.elastic.co/t/elasticsearch-master-slave-configuration/147525/2 "2018-09-06T08:34:10Z")

</div>

Elasticsearch is designed to run clustered, not in a master-slave setup. You should therefore make all your nodes master eligible and set `minimum_master_nodes` to `2` as per[these guidelines](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/modules-node.html#split-brain). Running with a single master-eligible node is bad and makes that a single point of failure.

Also verify that all host can connect to port 9300 on the other hosts and that no firewall rules are preventing this.

---

<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:** [October 4, 2018, 8:34am UTC](https://discuss.elastic.co/t/elasticsearch-master-slave-configuration/147525/3 "2018-10-04T08:34:15Z")

</div>

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