# Restarting Elasticsearch node 2.0

**URL:** <https://discuss.elastic.co/t/restarting-elasticsearch-node-2-0/37957>\
**Category:** Elasticsearch\
**Created:** [December 24, 2015, 8:33pm UTC](https://discuss.elastic.co/t/restarting-elasticsearch-node-2-0/37957 "2015-12-24T20:33:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mramaprasad](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mramaprasad](https://discuss.elastic.co/u/mramaprasad)\
**Post date:** [December 24, 2015, 8:33pm UTC](https://discuss.elastic.co/t/restarting-elasticsearch-node-2-0/37957/1 "2015-12-24T20:33:47Z")

</div>

I used to run curl -XPOST '[http://localhost:9200/\_shutdown](http://localhost:9200/_shutdown)' to shut down all nodes and start one node at a time during cluster restarts in order not to re balance the shard allocation.

Since this command is disabled in Elasticsearch 2.0. How do we restart the cluster with out rebalancing the shard allocation?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [December 24, 2015, 9:03pm UTC](https://discuss.elastic.co/t/restarting-elasticsearch-node-2-0/37957/2 "2015-12-24T21:03:05Z")

</div>

You should be able to disable allocation with the API. I don't have a link  
handy, sorry!

---

<div class="post-metadata">

**Author:** ![mramaprasad](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mramaprasad](https://discuss.elastic.co/u/mramaprasad)\
**Post date:** [December 24, 2015, 9:12pm UTC](https://discuss.elastic.co/t/restarting-elasticsearch-node-2-0/37957/4 "2015-12-24T21:12:57Z")

</div>

I have 3 nodes running elasticsearch 2.0 with minimum master node =2.

Are the following steps seem ok?

1. 

I run the following command on all three nodes  
PUT /\_cluster/settings  
{  
"persistent": {  
"cluster.routing.allocation.enable": "none"  
}  
}

2.shut down/kill the elasticsearch process on all three servers.

While starting nodes, start each node and enable the allocation.

Thanks

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [December 24, 2015, 9:43pm UTC](https://discuss.elastic.co/t/restarting-elasticsearch-node-2-0/37957/5 "2015-12-24T21:43:15Z")

</div>

Sounds good. If you are doing a full cluster restart wait until they are  
back and then reenable allocation. You might want to synced flush first as  
it should make the restart faster.

---

<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, 11:28pm UTC](https://discuss.elastic.co/t/restarting-elasticsearch-node-2-0/37957/6 "2017-07-05T23:28:42Z")

</div>


