feat(wlm): add search.max_buckets to workload group settings - #21721
Conversation
PR Reviewer Guide 🔍(Review updated until commit b3de5eb)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to b3de5eb Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 055c663
Suggestions up to commit 20e59c7
Suggestions up to commit f28c859
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #21721 +/- ##
============================================
+ Coverage 73.41% 73.57% +0.16%
- Complexity 75312 75413 +101
============================================
Files 6028 6028
Lines 341999 342016 +17
Branches 49185 49187 +2
============================================
+ Hits 251094 251654 +560
+ Misses 70951 70401 -550
- Partials 19954 19961 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Persistent review updated to latest commit 20e59c7 |
|
❌ Gradle check result for 20e59c7: null 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? |
|
Persistent review updated to latest commit 055c663 |
|
❌ Gradle check result for 055c663: 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: David Zane <davizane@amazon.com>
Signed-off-by: David Zane <davizane@amazon.com>
Signed-off-by: David Zane <davizane@amazon.com>
Signed-off-by: David Zane <davizane@amazon.com>
|
Persistent review updated to latest commit b3de5eb |
|
❌ Gradle check result for b3de5eb: null 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? |
…rch-project#21721) * feat(wlm): add search.max_buckets to workload group settings Signed-off-by: David Zane <davizane@amazon.com>
Description
Onboards
search.max_bucketsas a Workload Management search setting. Today,search.max_bucketsis a single cluster-wide setting, leaving operators with no way to apply per-tenant bucket limits. This feature gives users the flexibility to assign more restrictive bucket limits to protect the system, or more permissive limits when their use case calls for it.Unlike the four settings added in #21523,
search.max_bucketsdoes not exist as a per-request parameter — it only exists as a cluster setting. The value is enforced by theMultiBucketConsumerServiceclass at two sites: (1) during the query phase on each data node, and (2) during the final reduce on the coordinator. This PR includes the necessary piping so thatMultiBucketConsumerServicecan resolve the WLMmax_bucketsvalue from the workload group ID passed in thread context (already propagated to shards).Because there is no per-request value to override,
override_request_valuesis not relevant for this setting. The WLM value, when defined, always wins over the cluster setting — workload groups are admin-configured and more granular than the cluster-wide setting.Related Issues
Resolves #20556
Part of #20555
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.