Skip to content

Add timeout for Elasticsearch queries

We introduced a timeout for count queries for Elasticsearch via: !53435 (merged)

I would us to consider adding a timeout for search queries. This could help reduce load on the Elasticsearch server. We could show a similar timeout screen (similar to what is done with a Basic Search times out).

We need to take into account whether the searches are global, group, or project because the call to action (CTA) when a timeout occurs says to use the group/project filters and search again. Perhaps we should add timeouts for the global searches only.

The following discussion from !67977 (merged) should be addressed:

  • @mayra-cabrera started a discussion: (+3 comments)

    Some questions about this class as I'm not familiar with it:

    • How is it executed, is it async or sync?
    • Are the queries executed in the primary or the replicas?
    • Given the elevated execution times, did we consider guarding it under a feature flag?

    Could you please expand on those? Thanks!

Edited by Terri Chu