Is searches cancellation with Task API more effective than setting request timeout?

Hello dear people,

I'm doing some tests around protecting an Elasticsearch cluster from long-running queries, and my results show that settings request timeout to, let's say, 20s is not the same as attempting to cancel a running search after 20s with Task API. Cancellation proves to be more effective. I haven't checked the source code, just wanted to double check my test results with you. Would love if you can share some details of internal mechanisms involved in timing out requests as well as cancelling them and how these mechanisms are different from each other. My ES version is 6.3.0

Thank you!

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