# Master restart how avoid server is SERVICE\_UNAVAILABLE?

**URL:** <https://discuss.elastic.co/t/master-restart-how-avoid-server-is-service-unavailable/57478>\
**Category:** Elasticsearch\
**Created:** [August 8, 2016, 12:46pm UTC](https://discuss.elastic.co/t/master-restart-how-avoid-server-is-service-unavailable/57478 "2016-08-08T12:46:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![win1027](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@win1027](https://discuss.elastic.co/u/win1027)\
**Post date:** [August 8, 2016, 12:46pm UTC](https://discuss.elastic.co/t/master-restart-how-avoid-server-is-service-unavailable/57478/1 "2016-08-08T12:46:09Z")

</div>

2.1.1 version. i modify config, need restart master node, when i restart primary master, the data node has many SERVICE\_UNAVAILABLE/2/no master error log. and need time out to elect new primary master, this mean es cluster is that time is not available.

how avoid this status, is es provide step\_down() command like mongo?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [August 8, 2016, 2:37pm UTC](https://discuss.elastic.co/t/master-restart-how-avoid-server-is-service-unavailable/57478/2 "2016-08-08T14:37:08Z")

</div>

No, there is no such API.

---

<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:** [July 5, 2017, 10:29pm UTC](https://discuss.elastic.co/t/master-restart-how-avoid-server-is-service-unavailable/57478/3 "2017-07-05T22:29:23Z")

</div>


