-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Added search backpressure stats API #4932
Added search backpressure stats API #4932
Conversation
Gradle Check (Jenkins) Run Completed with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
e8e5118
to
89549f1
Compare
Gradle Check (Jenkins) Run Completed with:
|
89549f1
to
46d138d
Compare
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java
Show resolved
Hide resolved
46d138d
to
b17b52b
Compare
Gradle Check (Jenkins) Run Completed with:
|
b17b52b
to
cc2e682
Compare
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/backpressure/SearchBackpressureService.java
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"cancellation_stats": {
"cancellation_count": 0,
"cancellation_limit_reached_count": 0,
"last_cancelled_task": null
}
Can we have individual trackers have this info?
These cancellation stats are at a shard level. Only having them at a tracker level won't be very meaningful as tasks may get cancelled for multiple reasons, essentially double-counting the cancellation count.
|
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/backpressure/SearchBackpressureService.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/backpressure/SearchBackpressureState.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/backpressure/settings/SearchBackpressureMode.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/common/settings/ClusterSettings.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/backpressure/stats/CancelledTaskStats.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/backpressure/stats/SearchBackpressureStats.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/backpressure/stats/SearchShardTaskStats.java
Outdated
Show resolved
Hide resolved
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>
Signed-off-by: Ketan Verma <ketan9495@gmail.com>
Signed-off-by: Ketan Verma <ketan9495@gmail.com>
66791e1
to
7602cac
Compare
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Ketan Verma <ketan9495@gmail.com>
7602cac
to
2f73821
Compare
Gradle Check (Jenkins) Run Completed with:
|
Note on Gradle checks: The Have separately verified with 3.0.0 that everything passes.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Overriding merge due to Jenkins failure opensearch-project/opensearch-ci#222 |
Description
Added search backpressure stats to the existing node/stats API to describe:
SearchShardTask
only)TaskResourceUsageTracker
Sample request:
GET /_nodes/stats/search_backpressure?human
Sample response:
Issues Resolved
#1181
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Signed-off-by: Ketan Verma ketan9495@gmail.com