There are no use of timeout for search?

I set the search timeout by 1s,but there is no use.

url:http://xxx:9200/flume-*/detail/_search?timeout=1s

resp:"took": 40356, "timed_out": true, "_shards": { "total": 495, "successful": 495, "failed": 0 },

Is there any setting to make the timeout useful?

es V5.2.1

1 Like

Most sections of code are time-checked but some are not e.g. if loading fielddata for the first time this un-inversion of data is for the benefit of potentially many queries not just the first one that needs fielddata so we don't abort that loop.
However, other scenarios might be a runaway script that is doing something funky.

What query is causing this and what version are you on? It's useful for us to diagnose examples of runaway searches.

1 Like

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