# Rolling restart Elasticsearch 5.5 (multi instance on node)

**URL:** <https://discuss.elastic.co/t/rolling-restart-elasticsearch-5-5-multi-instance-on-node/198685>\
**Category:** Elasticsearch\
**Created:** [September 9, 2019, 12:57pm UTC](https://discuss.elastic.co/t/rolling-restart-elasticsearch-5-5-multi-instance-on-node/198685 "2019-09-09T12:57:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beuhlet\_Reseau](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@Beuhlet\_Reseau](https://discuss.elastic.co/u/Beuhlet_Reseau)\
**Post date:** [September 9, 2019, 12:57pm UTC](https://discuss.elastic.co/t/rolling-restart-elasticsearch-5-5-multi-instance-on-node/198685/1 "2019-09-09T12:57:56Z")

</div>

Hey All,

I'm in trouble.

I want perform rolling restart (so any service break) on our Elasticsearch Cluster (v 5.5).  
Particularity : One node contains four java instance of Elasticsearch.

It's ok this procedure :

1. Disable shard allocation.  
curl -X PUT "localhost:9200/\_cluster/settings?pretty" -H 'Content-Type: application/json' -d' {"transient": {"cluster.routing.allocation.enable": "none"}}'

2. Stop non-essential indexing and perform a synced flush (Optional)  
curl -X POST "localhost:9200/\_flush/synced?pretty"

3. Stop one node (so in my case, restart one node = restart four instances)  
Stop elasticsearch node

4. Start node (so my four instance going to start)

5. Reenable shard allocation.  
curl -X PUT "localhost:9200/\_cluster/settings?pretty" -H 'Content-Type: application/json' -d'  
{"transient": {"cluster.routing.allocation.enable": "all"}}'

6. Wait for the node to recover

7. Repeat on next node "multi instance"

So, it's better to stop/start master instance in first no ?

Also, i increase max byte recovery per seconde to speed up the rolling restart.

---

<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 7, 2019, 12:58pm UTC](https://discuss.elastic.co/t/rolling-restart-elasticsearch-5-5-multi-instance-on-node/198685/2 "2019-10-07T12:58:08Z")

</div>

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