# Case Heavy load : How we can search all search request cancellable to cancellation

**URL:** <https://discuss.elastic.co/t/case-heavy-load-how-we-can-search-all-search-request-cancellable-to-cancellation/250472>\
**Category:** Elasticsearch\
**Created:** [September 30, 2020, 8:48am UTC](https://discuss.elastic.co/t/case-heavy-load-how-we-can-search-all-search-request-cancellable-to-cancellation/250472 "2020-09-30T08:48:08Z")\
**Posts on this page:** 5\
**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 30, 2020, 8:48am UTC](https://discuss.elastic.co/t/case-heavy-load-how-we-can-search-all-search-request-cancellable-to-cancellation/250472/1 "2020-09-30T08:48:08Z")

</div>

Hello,

Maybe our cluster become unreacheable or with high latency.

I personally believe that tasks cancellation can be help to decrease load in cluster ?

I try this :

```
GET /_cat/thread_pool/search?v&h=node_name,name,active,rejected,completed
GET _tasks?actions=*search&cancellable=true

```

At the end, i search to retrieve all search task cancellable to cancellation during high load in cluster.

Thanks for help.

---

<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:** [September 30, 2020, 8:52am UTC](https://discuss.elastic.co/t/case-heavy-load-how-we-can-search-all-search-request-cancellable-to-cancellation/250472/2 "2020-09-30T08:52:35Z")

</div>

What version are you on?  
What do you mean by unreachable?  
What do your Elasticsearch logs show?  
What does hot threads show?  
What version are you one?  
What is the output from `_cluster/stats?pretty&human`?

---

<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 30, 2020, 8:57am UTC](https://discuss.elastic.co/t/case-heavy-load-how-we-can-search-all-search-request-cancellable-to-cancellation/250472/3 "2020-09-30T08:57:53Z")

</div>

Hey Warkolm

I am the crazy man who works on ES 5.5.

What version are you on? 5.5  
What do you mean by unreachable? I GET curl and no response  
What do your Elasticsearch logs show? Full timeout between nodes communication  
What does hot threads show? How i can give you this ?

Maybe during high load, the tasks cancellation can help to back on solid state (and no snake 🙂 )

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 30, 2020, 9:38am UTC](https://discuss.elastic.co/t/case-heavy-load-how-we-can-search-all-search-request-cancellable-to-cancellation/250472/4 "2020-09-30T09:38:17Z")

</div>

Cancellation of tasks is something that has been improved in recent versions and is still worked on, but as far as I recall this functionality was very limited in Elasticsearch 5.x.

---

<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 28, 2020, 9:38am UTC](https://discuss.elastic.co/t/case-heavy-load-how-we-can-search-all-search-request-cancellable-to-cancellation/250472/5 "2020-10-28T09:38:30Z")

</div>

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