-
Notifications
You must be signed in to change notification settings - Fork 94
Add include_individual_nodes, include_all_nodes, include_info params to stats API #1360
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 include_individual_nodes, include_all_nodes, include_info params to stats API #1360
Conversation
5e4d646
to
0426b26
Compare
should we put a cap to how many node-level stats we want to support? what would be the performance impact if we had too many nodes in a cluster? Also, i think the default should be set to |
It's something we should be aware of, but it's difficult to say what the hard cap would be. Memory usage of the API call should increase linearly with the number of event stats we track so there isn't an easy hard threshold we can calculate.
It's a bit ambiguous, but we're primarily concerned with a situation similar to
I think default has to stay as true to maintain backwards compatibility with previous versions |
I'm planning on adding additional flags to filter the |
shouldn't it be that if |
Yes, if it's true we include it, if it's false we exclude it. Current behavior before this flag is that it's always included, so the default is that it's true |
@q-andy |
0426b26
to
d1fce9c
Compare
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, could we also reolve the WARN logs in EventStatName.java? I see many these of logs in tests outputs, example: https://github.com/opensearch-project/neural-search/actions/runs/15551799557/job/43783675657?pr=1360
/home/runner/work/neural-search/neural-search/build/generated/sources/delombok/java/main/org/opensearch/neuralsearch/stats/events/EventStatName.java:21: warning: no comment
TEXT_EMBEDDING_PROCESSOR_EXECUTIONS("text_embedding_executions", "processors.ingest", EventStatType.TIMESTAMPED_EVENT_COUNTER, Version.V_3_0_0), TEXT_EMBEDDING_PROCESSOR_SKIP_EXISTING_EXECUTIONS("text_embedding_skip_existing_executions", "processors.ingest", EventStatType.TIMESTAMPED_EVENT_COUNTER, Version.V_3_1_0), TEXT_CHUNKING_PROCESSOR_EXECUTIONS("text_chunking_executions", "processors.ingest", EventStatType.TIMESTAMPED_EVENT_COUNTER, Version.V_3_1_0), TEXT_CHUNKING_FIXED_TOKEN_LENGTH_EXECUTIONS("text_chunking_fixed_token_length_executions", "processors.ingest", EventStatType.TIMESTAMPED_EVENT_COUNTER, Version.V_3_1_0), TEXT_CHUNKING_DELIMITER_EXECUTIONS("text_chunking_delimiter_executions", "processors.ingest", EventStatType.TIMESTAMPED_EVENT_COUNTER, Version.V_3_1_0), TEXT_CHUNKING_FIXED_CHAR_LENGTH_EXECUTIONS("text_chunking_fixed_char_length_executions", "processors.ingest",
Signed-off-by: Andy Qin <[email protected]>
Signed-off-by: Andy Qin <[email protected]>
d1fce9c
to
5a28bdc
Compare
Sure, added in latest commit |
Signed-off-by: Andy Qin <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1360 +/- ##
============================================
- Coverage 80.10% 0 -80.11%
============================================
Files 159 0 -159
Lines 8223 0 -8223
Branches 1321 0 -1321
============================================
- Hits 6587 0 -6587
+ Misses 1133 0 -1133
+ Partials 503 0 -503 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Adds 3 new parameter to stats API,
include_individual_nodes
include_all_nodes
include_info
All are default
true
. When set tofalse
, the response excludes the corestpond category stats from the stats responseSome cases to note:
include_individual_nodes=false
andinclude_all_nodes=true
, stats will still be fetched aggregated across nodes and the aggregate will be included in response. But individual nodes will not be excluded from the response.include_individual_nodes=false
andinclude_all_nodes=false
, no stats will be fetched from any nodeinclude_info=false
, then info stats will not be calculated.This flag is backwards compatible since it is default true, which is the default previous expected behavior.
With
include_individual_nodes
flag falseRelated Issues
Related to #1104
Check List
--signoff
.API spec issue: opensearch-project/opensearch-api-specification#890
Documentation issue: opensearch-project/documentation-website#9943
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.