# Elasticsearch graceful restart without rebalancing shards

**URL:** <https://discuss.elastic.co/t/elasticsearch-graceful-restart-without-rebalancing-shards/251660>\
**Category:** Elasticsearch\
**Created:** [October 10, 2020, 11:01pm UTC](https://discuss.elastic.co/t/elasticsearch-graceful-restart-without-rebalancing-shards/251660 "2020-10-10T23:01:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GabrielM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabrielm/32/47827_2.png) [@GabrielM](https://discuss.elastic.co/u/GabrielM)\
**Post date:** [October 10, 2020, 11:01pm UTC](https://discuss.elastic.co/t/elasticsearch-graceful-restart-without-rebalancing-shards/251660/1 "2020-10-10T23:01:39Z")

</div>

Hello, I wanted to know if it is possible to restart a node of an Elasticsearch cluster in a graceful way?  
When I restart a node in the cluster, searches that use that node fail (shards are replicated).  
Is it possible to blacklist a node for searches before restarting it?  
Currently the only solution I have found: re-allocate the shards of the node to other nodes. But I can't do this because my nodes have several terabytes of storage.

Thanks in advance, have a nice day.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 11, 2020, 12:09am UTC](https://discuss.elastic.co/t/elasticsearch-graceful-restart-without-rebalancing-shards/251660/2 "2020-10-11T00:09:56Z")

</div>

You can basically follow the same procedure as explained at:

> **[Rolling upgrades | Elasticsearch Reference \[7.9\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html)**

Just don't do the upgrade 😏

---

<div class="post-metadata">

**Author:** ![GabrielM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabrielm/32/47827_2.png) [@GabrielM](https://discuss.elastic.co/u/GabrielM)\
**Post date:** [October 15, 2020, 3:37pm UTC](https://discuss.elastic.co/t/elasticsearch-graceful-restart-without-rebalancing-shards/251660/3 "2020-10-15T15:37:01Z")

</div>

Hello David and thank you for your response. I tried to do the trick (without upgrade 😇) but it seams that you need to do the request on a coordinatating node to do a graceful restart on the other nodes. Am i right ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 15, 2020, 3:54pm UTC](https://discuss.elastic.co/t/elasticsearch-graceful-restart-without-rebalancing-shards/251660/4 "2020-10-15T15:54:43Z")

</div>

You need to do this procedure on all nodes.

---

<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:** [November 12, 2020, 3:54pm UTC](https://discuss.elastic.co/t/elasticsearch-graceful-restart-without-rebalancing-shards/251660/5 "2020-11-12T15:54:45Z")

</div>

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