-
Notifications
You must be signed in to change notification settings - Fork 506
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 total wait time to thread pool in nodes stats #5120
Conversation
Signed-off-by: Fanit Kolchina <[email protected]>
@@ -977,6 +979,7 @@ active | Integer | The number of active threads in the pool. | |||
rejected | Integer | The number of tasks that have been rejected. | |||
largest | Integer | The peak number of threads in the pool. | |||
completed | Integer | The number of tasks completed. | |||
total_wait_time | Integer | The total time tasks spent waiting in the thread pool queue. |
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.
Not all thread_pool
s support this metric today -- only search
, search_throttled
, and index_searcher
thread_pools support it. Not sure what the right place to mention this (if at all) is
Signed-off-by: kolchfa-aws <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>
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! A couple nits.
Co-authored-by: Heather Halter <[email protected]> Signed-off-by: kolchfa-aws <[email protected]>
Co-authored-by: Heather Halter <[email protected]> Signed-off-by: kolchfa-aws <[email protected]>
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.
@kolchfa-aws One change and one comment. Thanks!
@@ -1066,7 +1069,7 @@ total.count | Integer | The total number of documents ingested by the node. | |||
total.time_in_millis | Integer | The total amount of time for preprocessing ingest documents, in milliseconds. | |||
total.current | Integer | The total number of documents that are currently being ingested by the node. | |||
total.failed | Integer | The total number of failed ingestions for the node. | |||
pipelines | Object | Ingest pipeline statistics for the node. Each pipeline is a nested object specified by its ID with the properties listed below. | |||
pipelines | Object | Ingest pipeline statistics for the node. Each pipeline is a nested object specified by its ID with the following properties. |
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.
Should "with" be "and has", as on line 1108?
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>
@@ -977,6 +979,7 @@ active | Integer | The number of active threads in the pool. | |||
rejected | Integer | The number of tasks that have been rejected. | |||
largest | Integer | The peak number of threads in the pool. | |||
completed | Integer | The number of tasks completed. | |||
total_wait_time | Integer | The total amount of time tasks spent waiting in the thread pool queue. Currently, only `search`, `search_throttled`, and `index_searcher` thread pools support this 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.
@kolchfa-aws @jed326 We are saying that this is supported for search
threadpool but in the example above it is showing up for ad-batch-task-threadpool
and OPENSEARCH_ML_TASK_THREAD_POOL
. So either we add search threadpool stats in above example with this new metric or remove the new metric from those threadpool
Signed-off-by: Fanit Kolchina <[email protected]>
…#5120) * Add total wait time to thread pool in nodes stats Signed-off-by: Fanit Kolchina <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Signed-off-by: kolchfa-aws <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Signed-off-by: kolchfa-aws <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Co-authored-by: Heather Halter <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Co-authored-by: Heather Halter <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Signed-off-by: kolchfa-aws <[email protected]> * Removed total wait time from response Signed-off-by: Fanit Kolchina <[email protected]> --------- Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> Co-authored-by: Heather Halter <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
* Add total wait time to thread pool in nodes stats Signed-off-by: Fanit Kolchina <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Signed-off-by: kolchfa-aws <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Signed-off-by: kolchfa-aws <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Co-authored-by: Heather Halter <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Co-authored-by: Heather Halter <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _api-reference/nodes-apis/nodes-stats.md Signed-off-by: kolchfa-aws <[email protected]> * Removed total wait time from response Signed-off-by: Fanit Kolchina <[email protected]> --------- Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> Co-authored-by: Heather Halter <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
Fixes #5007
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.