Skip to content
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

[Feature Request] Mechanism to log/track long running resource intensive query impacting availability #17636

Open
jainankitk opened this issue Mar 19, 2025 · 0 comments
Labels
enhancement Enhancement or improvement to existing feature or request Search:Resiliency untriaged

Comments

@jainankitk
Copy link
Collaborator

Is your feature request related to a problem? Please describe

Today, we have Query Insights and Coordinator/Shard slow logs to track queries taking more times than the configured threshold, but both the features require query to complete before it gets tracked.

What if the query brings down the node, before it can even complete?

Describe the solution you'd like

One of the way could be to track the time for each active query, and proactively log if it has exceeded the threshold. This can potentially cause repetitive logging for the same query. But, I guess it is better to log multiple times than not log at all. Also, doing it on the coordinator slow log avoids shard level repetitive work. @sgup432 @ansjcy @dzane17 @kaushalmahi12 - What do you guys think of this approach? Open to any other suggestions.

Related component

Search:Resiliency

Describe alternatives you've considered

No response

Additional context

No response

@jainankitk jainankitk added enhancement Enhancement or improvement to existing feature or request untriaged labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Search:Resiliency untriaged
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant