-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Pagination for wlm/stats api #17638
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
Pagination for wlm/stats api #17638
Conversation
❌ Gradle check result for ad612da: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for baa30b0: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/main/java/org/opensearch/action/pagination/WlmPaginationStrategy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/pagination/WlmPaginationStrategy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/pagination/WlmPaginationStrategy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/pagination/WlmPaginationStrategy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/rest/action/admin/cluster/RestWlmStatsAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/rest/action/admin/cluster/RestWlmStatsAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/rest/action/admin/cluster/RestWlmStatsAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/rest/action/admin/cluster/RestWlmStatsAction.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/action/pagination/DiscoveryNodeMock.java
Outdated
Show resolved
Hide resolved
❌ Gradle check result for 0dd053d: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/main/java/org/opensearch/action/pagination/WlmPaginationStrategy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/pagination/WlmPaginationStrategy.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/pagination/WlmPaginationStrategy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/rest/action/admin/cluster/RestWlmStatsAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/rest/action/admin/cluster/RestWlmStatsAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/rest/action/admin/cluster/RestWlmStatsAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/pagination/SortBy.java
Outdated
Show resolved
Hide resolved
Can we provide a better name for this PR and add some description? A single word title is not descriptive |
❌ Gradle check result for 29ec21f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Lingxi Chen <[email protected]>
❌ Gradle check result for 35a391b: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
@Lindsay-00 - I can see related test failures:
|
Signed-off-by: Lingxi Chen <[email protected]>
@Lindsay-00 - The code coverage for this change is bit low - https://app.codecov.io/gh/opensearch-project/OpenSearch/pull/17638?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=checks&utm_campaign=pr+comments&utm_term=opensearch-project. I am wondering if there is opportunity to improve that by adding few more tests? |
Signed-off-by: Lingxi Chen <[email protected]>
Signed-off-by: Lingxi Chen <[email protected]>
❌ Gradle check result for e48e03a: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Lingxi Chen <[email protected]>
❌ Gradle check result for bbad32e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Lingxi Chen <[email protected]>
Signed-off-by: Lingxi Chen <[email protected]>
❌ Gradle check result for c808b69: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Lingxi Chen <[email protected]>
Signed-off-by: Lingxi Chen <[email protected]>
❕ Gradle check result for 4dbd9e4: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
--------- Signed-off-by: Lingxi Chen <[email protected]>
--------- Signed-off-by: Lingxi Chen <[email protected]>
--------- Signed-off-by: Lingxi Chen <[email protected]>
--------- Signed-off-by: Lingxi Chen <[email protected]>
Description
This change addresses a scalability issue in the existing /_wlm/stats API by introducing a new paginated endpoint: /_list/wlm_stats. The original API returns statistics for all nodes and query groups in a single response, which becomes inefficient and resource-intensive as cluster size grows.
This enhancement is part of the ongoing effort to improve observability and scalability in OpenSearch Workload Management, as described in GitHub Issue #17592.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
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.