Skip to content

How to simulate long running search requests #54159

@jimczi

Description

@jimczi

For the development of the async_search APIs we needed a way to simulate long running queries. For this purpose we wrote a small module that can simulate such long running queries on shards. We used it for demo and monkey testing but we've also shared it with Kibana to help them integrating the new feature. While sharing a plugin/module is ok when developing a feature in master, we think that this module could be used outside of the development phase by other solutions to simulate long running queries.
A question was raised whether we want to provide this plugin/module in our distribution automatically in order to let users play with long running queries without requiring to index billions of documents.
The way we simulate long running queries can be discussed in a follow up, the current module uses Thread.sleep but it's an implementation details at this point. I opened this issue to discuss two points:

  • Does that sound useful to provide a way for users to simulate long running queries easily in Elasticsearch.

  • If so, how should we expose such functionality.

We probably don't want this module to be available in production deployment so @jasontedor proposed that we ship the module automatically in the distribution only if the build is a snapshot build.
Another option would be to provide such functionalities as an example plugin only available in our build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Delivery/BuildBuild or test infrastructure:Search/SearchSearch-related issues that do not fall into other categories>featureTeam:DeliveryMeta label for Delivery teamTeam:SearchMeta label for search team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions