# Master node down

**URL:** <https://discuss.elastic.co/t/master-node-down/200356>\
**Category:** Elasticsearch\
**Created:** [September 20, 2019, 6:50am UTC](https://discuss.elastic.co/t/master-node-down/200356 "2019-09-20T06:50:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi\_gajareddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_gajareddy/32/54483_2.png) [@ravi\_gajareddy](https://discuss.elastic.co/u/ravi_gajareddy)\
**Post date:** [September 20, 2019, 6:50am UTC](https://discuss.elastic.co/t/master-node-down/200356/1 "2019-09-20T06:50:53Z")

</div>

I am running two elastic nodes on port 9200 and 9201, I am adding the data through kibana with Http requests and everything is working fine. Here I stopped 9200 node and now I am unable to add data and in 9201 node I am seeing some exceptions like master node down. why 9201 not acting as master now?

---

<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 20, 2019, 7:05am UTC](https://discuss.elastic.co/t/master-node-down/200356/2 "2019-09-20T07:05:52Z")

</div>

For a highly available cluster you need a minimum of 3 master eligible nodes. 2 is not enough.

---

<div class="post-metadata">

**Author:** ![ravi\_gajareddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_gajareddy/32/54483_2.png) [@ravi\_gajareddy](https://discuss.elastic.co/u/ravi_gajareddy)\
**Post date:** [September 20, 2019, 8:25am UTC](https://discuss.elastic.co/t/master-node-down/200356/3 "2019-09-20T08:25:52Z")

</div>

I have 3 nodes with port 9200 as primary and 9201,9202. I am adding data to node with port number 9200, now my node 9200 closed for some x reasons, now iam unable to add data because port is 9200, how I can i do that?

---

<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 20, 2019, 8:27am UTC](https://discuss.elastic.co/t/master-node-down/200356/4 "2019-09-20T08:27:15Z")

</div>

You need to set up you client to connect to all nodes in the cluster or use a load balancer.

---

<div class="post-metadata">

**Author:** ![ravi\_gajareddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_gajareddy/32/54483_2.png) [@ravi\_gajareddy](https://discuss.elastic.co/u/ravi_gajareddy)\
**Post date:** [September 20, 2019, 9:29am UTC](https://discuss.elastic.co/t/master-node-down/200356/5 "2019-09-20T09:29:52Z")

</div>

means in my client app I need to connect to all 3 nodes, then while adding data , I need to give to primary node address if my primary exists if not I should add data in other 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:** [October 18, 2019, 9:30am UTC](https://discuss.elastic.co/t/master-node-down/200356/6 "2019-10-18T09:30:01Z")

</div>

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