Is there a way to simulate slow queries in Elasticsearch?


Is there a way to simulate slow queries? I want to test an application and I would like to simulate queries that would take up space in queue and will mark a thread as active for couple of minutes to see how the application handles failures and full queue.

I would like to avoid adding gigabytes of data because this would take time and space.

Thank you.


to my knowledge there is no such query, but you could probably use a script query that either sleeps somewhere or performs some costly calculation. Haven't tried this myself though, but that might be an option.