# Does cluster reject queries when rolling restart?

**URL:** <https://discuss.elastic.co/t/does-cluster-reject-queries-when-rolling-restart/152907>\
**Category:** Elasticsearch\
**Created:** [October 17, 2018, 7:43pm UTC](https://discuss.elastic.co/t/does-cluster-reject-queries-when-rolling-restart/152907 "2018-10-17T19:43:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jianzhou\_Z](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jianzhou_z/32/46751_2.png) [@Jianzhou\_Z](https://discuss.elastic.co/u/Jianzhou_Z)\
**Post date:** [October 17, 2018, 7:43pm UTC](https://discuss.elastic.co/t/does-cluster-reject-queries-when-rolling-restart/152907/1 "2018-10-17T19:43:44Z")

</div>

Here is the post of rolling restarts:

[https://www.elastic.co/guide/en/elasticsearch/guide/master/\_rolling\_restarts.html](https://www.elastic.co/guide/en/elasticsearch/guide/master/_rolling_restarts.html)

Does it affect any queries running during this process? The process does not explicitly let clusters know a node will be killed, but only stop sync and rebalancing. Are existing queries rejected or retried?

There is another option  
"transient": {  
"cluster.routing.allocation.exclude.\_ip":  
}  
which can 'disable' a node to restart and rebalance data. Is this one better than the approach the link says?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 17, 2018, 9:00pm UTC](https://discuss.elastic.co/t/does-cluster-reject-queries-when-rolling-restart/152907/2 "2018-10-17T21:00:13Z")

</div>

> [@Jianzhou\_Z](#):
>
> Does it affect any queries running during this process?

If they are running on a node that is restarted they will return an error.

---

<div class="post-metadata">

**Author:** ![Jianzhou\_Z](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jianzhou_z/32/46751_2.png) [@Jianzhou\_Z](https://discuss.elastic.co/u/Jianzhou_Z)\
**Post date:** [October 17, 2018, 9:18pm UTC](https://discuss.elastic.co/t/does-cluster-reject-queries-when-rolling-restart/152907/3 "2018-10-17T21:18:50Z")

</div>

@warkolm The other option is by using transient.cluster.routing.allocation.exclude.\_ip to force the cluster to relocate all shards on a node to restart to other machines, and then restarting the node. Will this introduce less-errors?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 17, 2018, 9:38pm UTC](https://discuss.elastic.co/t/does-cluster-reject-queries-when-rolling-restart/152907/4 "2018-10-17T21:38:19Z")

</div>

Yes, but will take more time.

---

<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 14, 2018, 9:43pm UTC](https://discuss.elastic.co/t/does-cluster-reject-queries-when-rolling-restart/152907/5 "2018-11-14T21:43:38Z")

</div>

Closed on November 14, 2018, 9:43pm UTC

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