-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add cluster manager task throttling stats in nodes stats API #5790
Add cluster manager task throttling stats in nodes stats API #5790
Conversation
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
9613607
to
de68b8a
Compare
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/service/ClusterManagerThrottlingStats.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/service/ClusterManagerThrottlingStats.java
Outdated
Show resolved
Hide resolved
private Map<String, CounterMetric> throttledTasksCount = new ConcurrentHashMap<>(); | ||
private Map<String, CounterMetric> throttledTasksCount; | ||
|
||
public ClusterManagerThrottlingStats() { |
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.
We might need additional metrics on throttle_time
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.
Can you please elaborate more on this?
What we are expecting out of throttle_time metric?
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.
time since we last throttled
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.
Time since cluster manager performed has done throttling for any task? Or for different task type as well?
I think we can achieve it, as we can maintain time as well when we have performed last throttling on cluster manager node.
I am just wondering how this additional metric will help?
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Precommit is passing, gradle check is failing. It is failing due to some connection issue with ubuntu. I will retry it later.
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
39ed900
to
07c0d87
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
07c0d87
to
34c6438
Compare
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
NOTE on gradle check. Backward compatible tests are failing. Since we have added 2.6.0 version check for stats, it is expected to happen. It will fix once we merge backport 2.x PR. (#5871). Gradle check is passing in backport PR. Similar behavior has been observed in other stats PR as well with version check. (#4932 (comment)) |
server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java
Show resolved
Hide resolved
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-5790-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 6da16e1e60760f630c8f7fe7ec1088feb13ff216
# Push it to GitHub
git push --set-upstream origin backport/backport-5790-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
Signed-off-by: Dhwanil Patel dhwanip@amazon.com
Description
Add throttling stats in _nodes/stats API.
In Active master node's stats these stats will appear, for other nodes it will be 0. From active master node's stats we can get visibility on how many tasks are getting throttled.
Below is sample stats for two node cluster.
Issues Resolved
#479
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.