# Cancel after time interval clarification

**URL:** <https://discuss.elastic.co/t/cancel-after-time-interval-clarification/343401>\
**Category:** Elasticsearch\
**Created:** [September 19, 2023, 8:48pm UTC](https://discuss.elastic.co/t/cancel-after-time-interval-clarification/343401 "2023-09-19T20:48:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxfriz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maxfriz/32/123814_2.png) [@maxfriz](https://discuss.elastic.co/u/maxfriz)\
**Post date:** [September 19, 2023, 8:48pm UTC](https://discuss.elastic.co/t/cancel-after-time-interval-clarification/343401/1 "2023-09-19T20:48:29Z")

</div>

To ensure a clear understanding of our global search configuration for a given cluster, I would like to clarify the following as written:

- The `search.cancel_after_time_interval` configures (at the data node level) the termination of a query after the specified time duration _if a query has not fully completed_; which will follow the directive of the `search.low_level_cancellation` default of `true`.

- The `search.default_search_timeout` configures (at the data node level) the maximum time to wait for a query to fully complete before returning a _408 request timeout_ to the coordinating node.

- The `search.keep_alive_interval` is the interval at which the coordinating node will send a TCP keep alive to a shard/data node while the `search.default_keep_alive` and `search.max_keep_alive` are configured at the data node level.

- The `search.max_keep_alive` global value overrides any keep alive setting that may be specified in a given query.

I appreciate any clarifications you can provide. The documentation is somewhat helpful, but I haven't found a lot of straight forward detail specific to the settings above. I'm making some assumptions and I prefer to clarify where possible.

Thank you.

Max

---

<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 17, 2023, 8:48pm UTC](https://discuss.elastic.co/t/cancel-after-time-interval-clarification/343401/2 "2023-10-17T20:48:55Z")

</div>

Closed on October 17, 2023, 8:48pm UTC

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