-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Query Cache] Add a dynamic cluster setting to change skip cache factor #17736
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
Comments
[Search Triage] That will be great, lets see if someone from community is interested in working on this. |
I'd great to support this feature when the new lucene is released, If @sgup432 agrees. |
Also, in addition to this, we need to expose a dynamic setting to update the frequency based caching policy for QueryCache. Exposing this setting will give us an opportunity to update the value to a lower number, thereby increasing cache utilization if needed. |
@sgup432 I attempted to make the If we want to make the
I'm uncertain whether this is the optimal implementation path or if maintaining the |
@kkewwei I also believe that is the right/only approach ie passing our implementation of |
@kkewwei While checking more, I see there are two ways to get around
Option#2 might be a better way to keep the existing functionality. |
@sgup432 when defining However, I now realize we can simply check the class name instead of directly referencing If you think it's feasible, I'll do it this way. |
Yeah I personally think that having a custom caching policy for OpenSearch should be fine, given that lucene doesn't give the desired extensibility at this point. |
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe
Recently, a change was added in lucene LRU cache where we can dynamically change skip cache factor to increase the cache utilization. Someone had posted performance benefits here by relaxing skip cache factor limits and utilizing cache more.
We can add a cluster setting at our end to achieve this. Also explore in what cases(to what values) we can use this to achieve benefits.
Describe the solution you'd like
Add a dynamic cluster setting
Related component
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: