-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Move TSC took-time policy to guard both heap and disk tier #17190
Move TSC took-time policy to guard both heap and disk tier #17190
Conversation
Signed-off-by: Peter Alfonsi <petealft@amazon.com>
...ache-common/src/main/java/org/opensearch/cache/common/tier/TieredSpilloverCacheSettings.java
Show resolved
Hide resolved
Signed-off-by: Peter Alfonsi <petealft@amazon.com>
❌ Gradle check result for d74ae2d: 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 d74ae2d: 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? |
Flaky test: #17154 |
Signed-off-by: Peter Alfonsi <petealft@amazon.com>
modules/cache-common/src/main/java/org/opensearch/cache/common/tier/TieredSpilloverCache.java
Outdated
Show resolved
Hide resolved
❌ Gradle check result for aee2d8e: 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: Peter Alfonsi <petealft@amazon.com>
❌ Gradle check result for 9104303: 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? |
Flaky test: #14559 |
Signed-off-by: Peter Alfonsi <petealft@amazon.com>
❌ Gradle check result for 128506d: 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: Peter Alfonsi <petealft@amazon.com>
128506d
to
cb1bbf4
Compare
❌ Gradle check result for cb1bbf4: 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: Peter Alfonsi <petealft@amazon.com>
* Move TSC took-time policy to guard both heap and disk tier Signed-off-by: Peter Alfonsi <petealft@amazon.com> * changelog Signed-off-by: Peter Alfonsi <petealft@amazon.com> * spotless apply Signed-off-by: Peter Alfonsi <petealft@amazon.com> * Addressed Sagar's comment Signed-off-by: Peter Alfonsi <petealft@amazon.com> * Add missing javadoc Signed-off-by: Peter Alfonsi <petealft@amazon.com> * address round 2 of comments Signed-off-by: Peter Alfonsi <petealft@amazon.com> * Add removal notification to put() Signed-off-by: Peter Alfonsi <petealft@amazon.com> * Fix incorrect stats hit when cache entry rejected by policy Signed-off-by: Peter Alfonsi <petealft@amazon.com> * rerun gradle Signed-off-by: Peter Alfonsi <petealft@amazon.com> * Fixed more broken stats Signed-off-by: Peter Alfonsi <petealft@amazon.com> * rerun gradle Signed-off-by: Peter Alfonsi <petealft@amazon.com> * Addressed more comments Signed-off-by: Peter Alfonsi <petealft@amazon.com> * make policy rejections count as neither hit or miss Signed-off-by: Peter Alfonsi <petealft@amazon.com> * rerun gradle Signed-off-by: Peter Alfonsi <petealft@amazon.com> * remove potential double-loading Signed-off-by: Peter Alfonsi <petealft@amazon.com> * rerun gradle Signed-off-by: Peter Alfonsi <petealft@amazon.com> * remove removalNotification Signed-off-by: Peter Alfonsi <petealft@amazon.com> * rerun gradle Signed-off-by: Peter Alfonsi <petealft@amazon.com> --------- Signed-off-by: Peter Alfonsi <petealft@amazon.com> Signed-off-by: Peter Alfonsi <peter.alfonsi@gmail.com> Co-authored-by: Peter Alfonsi <petealft@amazon.com> (cherry picked from commit b1e66b3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…17478) * Move TSC took-time policy to guard both heap and disk tier * changelog * spotless apply * Addressed Sagar's comment * Add missing javadoc * address round 2 of comments * Add removal notification to put() * Fix incorrect stats hit when cache entry rejected by policy * rerun gradle * Fixed more broken stats * rerun gradle * Addressed more comments * make policy rejections count as neither hit or miss * rerun gradle * remove potential double-loading * rerun gradle * remove removalNotification * rerun gradle --------- (cherry picked from commit b1e66b3) Signed-off-by: Peter Alfonsi <petealft@amazon.com> Signed-off-by: Peter Alfonsi <peter.alfonsi@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Peter Alfonsi <petealft@amazon.com>
Description
Changes the TieredSpilloverCache's minimum took-time policy so that queries must take >10 ms to enter either tier, instead of just to enter the disk tier. This is desirable because when we allow caching size > 0 queries in the request cache, the number of cacheable queries may go way up, and we should avoid flooding the heap tier with overly cheap queries.
Note the setting key
tiered_spillover.disk.store.policies.took_time.threshold
is unchanged, for backwards compatibility.Related Issues
Resolves #16162
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.