-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add a dynamic setting to change skip_cache_factor and min_frequency for querycache #18351
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18351 +/- ##
============================================
- Coverage 73.00% 72.84% -0.16%
+ Complexity 69518 69427 -91
============================================
Files 5648 5648
Lines 319230 319272 +42
Branches 46174 46183 +9
============================================
- Hits 233039 232567 -472
- Misses 67346 67929 +583
+ Partials 18845 18776 -69 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
ed6544e to
4dac9a6
Compare
|
❌ Gradle check result for 649c936: 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: kkewwei <[email protected]>
|
@msfroh @sgup432 @sandeshkr419 I apologize for the inconvenience, could someone please help merge the code? The merge button is grey on my side due to failing merge requirements. |
|
@kkewwei -- just saw this notification now. I'll take a look tomorrow. If I forget, please tag me again. |
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
|
❌ Gradle check result for 8ca9726: 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: kkewwei <[email protected]>
|
@msfroh Tag you again😊 |
msfroh
left a comment
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.
I really like how isolated this is. I think it's a great change and highlights how tweakable the caching behavior can be. (Of course, we'll need to be careful that we don't expose too many settings, but these seem useful.)
Signed-off-by: kkewwei <[email protected]>
|
Next, I will add the settings in the document: |
…or querycache (opensearch-project#18351) * fix changelog conflicts Signed-off-by: kkewwei <[email protected]> * Add a dynamic setting to change skip_cache_factor and min_frequency for querycache Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> * change the setting name Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> * add volatile to variable Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> --------- Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]>
…or querycache (opensearch-project#18351) * fix changelog conflicts Signed-off-by: kkewwei <[email protected]> * Add a dynamic setting to change skip_cache_factor and min_frequency for querycache Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> * change the setting name Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> * add volatile to variable Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> --------- Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]>
…or querycache (opensearch-project#18351) * fix changelog conflicts Signed-off-by: kkewwei <[email protected]> * Add a dynamic setting to change skip_cache_factor and min_frequency for querycache Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> * change the setting name Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> * add volatile to variable Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> --------- Signed-off-by: kkewwei <[email protected]> Signed-off-by: kkewwei <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]>
Description
[Describe what this change achieves]
Related Issues
Resolves #17736
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.