# Proper way to restart elasticsearch in a cluster

**URL:** <https://discuss.elastic.co/t/proper-way-to-restart-elasticsearch-in-a-cluster/355794>\
**Category:** Elasticsearch\
**Created:** [March 20, 2024, 8:44am UTC](https://discuss.elastic.co/t/proper-way-to-restart-elasticsearch-in-a-cluster/355794 "2024-03-20T08:44:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tegerei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tegerei/32/132992_2.png) [@tegerei](https://discuss.elastic.co/u/tegerei)\
**Post date:** [March 20, 2024, 8:44am UTC](https://discuss.elastic.co/t/proper-way-to-restart-elasticsearch-in-a-cluster/355794/1 "2024-03-20T08:44:49Z")

</div>

Hello,

I have a 3 node ES cluster. Sometimes I do restarts on some or all of the nodes. Despite disabling shard allocation as explained [here](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/rolling-upgrades.html#_upgrading_your_cluster), I still get failed shards after the restart is complete and shard re-allocation enabled.  
I assume the process (Allocation, re-allocation) is complete when I get code 200, or acknowledge: true  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b5d66e64f37e05ee3bf15d3328506b5eac0c8f3c.png)

---

<div class="post-metadata">

**Author:** ![tegerei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tegerei/32/132992_2.png) [@tegerei](https://discuss.elastic.co/u/tegerei)\
**Post date:** [March 20, 2024, 8:56am UTC](https://discuss.elastic.co/t/proper-way-to-restart-elasticsearch-in-a-cluster/355794/2 "2024-03-20T08:56:40Z")

</div>

When you expand, this is what I get

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8c4b8570c8292cb37f6004de81c2d63574a52876.png)

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [March 20, 2024, 6:37pm UTC](https://discuss.elastic.co/t/proper-way-to-restart-elasticsearch-in-a-cluster/355794/3 "2024-03-20T18:37:38Z")

</div>

Thanks for reaching out, @tegerei.

[This guide](https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-cluster.html) might be a good starting point. This older [post](https://discuss.elastic.co/t/shards-unassigned-after-node-restarts-reason-node-left/67489) may be helpful too.

Best,  
Jessica

---

<div class="post-metadata">

**Author:** ![tegerei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tegerei/32/132992_2.png) [@tegerei](https://discuss.elastic.co/u/tegerei)\
**Post date:** [March 20, 2024, 6:56pm UTC](https://discuss.elastic.co/t/proper-way-to-restart-elasticsearch-in-a-cluster/355794/4 "2024-03-20T18:56:32Z")

</div>

Thanks. I was making mistakes. I disabled shard allocation once in a rolling restart.

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [March 20, 2024, 7:17pm UTC](https://discuss.elastic.co/t/proper-way-to-restart-elasticsearch-in-a-cluster/355794/5 "2024-03-20T19:17:00Z")

</div>

Yay, glad you figured it out. Thanks for sharing your solution, @tegerei.

Best,

Jessica

---

<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:** [April 17, 2024, 7:17pm UTC](https://discuss.elastic.co/t/proper-way-to-restart-elasticsearch-in-a-cluster/355794/6 "2024-04-17T19:17:30Z")

</div>

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