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

[Backport 2.4] [Backport 2.x] In-flight cancellation of SearchShardTask based on resource consumption #5058

Merged
merged 1 commit into from
Nov 3, 2022

Commits on Nov 3, 2022

  1. [Backport 2.x] In-flight cancellation of SearchShardTask based on res…

    …ource consumption (#5039)
    
    * [Backport 2.x] Added in-flight cancellation of SearchShardTask based on resource consumption (#4575)
    
    This feature aims to identify and cancel resource intensive SearchShardTasks if they have breached certain
    thresholds. This will help in terminating problematic queries which can put nodes in duress and degrade the
    cluster performance.
    
    * [Backport 2.x] Added resource usage trackers for in-flight cancellation of SearchShardTask (#4805)
    
    1. CpuUsageTracker: cancels tasks if they consume too much CPU
    2. ElapsedTimeTracker: cancels tasks if they consume too much time
    3. HeapUsageTracker: cancels tasks if they consume too much heap
    
    * [Backport 2.x]Added search backpressure stats API
    
    Added search backpressure stats to the existing node/stats API to describe:
    1. the number of cancellations (currently for SearchShardTask only)
    2. the current state of TaskResourceUsageTracker
    
    Signed-off-by: Ketan Verma <ketan9495@gmail.com>
    (cherry picked from commit 7c521b9)
    ketanv3 authored and github-actions[bot] committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    1809734 View commit details
    Browse the repository at this point in the history