-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API to list running requests #4329
Comments
I second @nik9000 in his wish list for APIs to list and kill queries. Much needed. The referenced elastic/kibana#1173 and this #4329 reference each other and both are closed. Any light at the end of the tunnel? |
Today the search context is stored in a thread local. It would be feasible to add an API that would iterate through all of these values (representing currently running searches) and return them, but it would mean changing the data structure to allow locking. We'd also need a way of capturing other types of requests (like bulk etc). The information would have to be per-node to be of any use. It might be worth investigating, although I'm leaning towards directing effort towards making changes that prevent abusive requests, things like switching from fielddata to doc values (as we've done in master), improvements to the circuit breakers, and safeguarding users from making silly mistakes (eg #11511). |
This is probably for the best. I wonder if you could do current request listing without something fancy - just keeping a list per node. But meh, just not being able to make bad queries is more likely I think. The lack of a kill feature is still a big whole when you compare it to relational databases - they always have the feature and I've always used it. Its a bit wish list-y though. PostgreSQL's kill works because each connection has process isolation. It makes locking harder but killing easier. With Elasticsearch you'd have to do something like add |
Closing in favour of #12187 |
I searched for but couldn't find a request for an api to list running queries an updates so I'm going to put together my wish list.
The text was updated successfully, but these errors were encountered: