Skip to content
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

[Tiered caching] Defining a new setting for tiered disk cache storage path #16242

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sgup432
Copy link
Contributor

@sgup432 sgup432 commented Oct 8, 2024

Description

Adding new setting for disk cache storage path specifically within tiered cache. Earlier we used specific cache implementation setting which might be confusing to user. This changes that now.

Example setting

indices.request.cache.tiered_spillover.disk.store.storage.path: /tmp

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

Copy link
Contributor

github-actions bot commented Oct 8, 2024

✅ Gradle check result for a9cbe24: SUCCESS

@sgup432
Copy link
Contributor Author

sgup432 commented Oct 8, 2024

@jainankitk

Signed-off-by: Sagar Upadhyaya <[email protected]>
Copy link
Contributor

github-actions bot commented Oct 8, 2024

❌ Gradle check result for c29acc1: 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: Sagar Upadhyaya <[email protected]>
Copy link
Contributor

github-actions bot commented Oct 9, 2024

❌ Gradle check result for cdbe57a: 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?

@sgup432
Copy link
Contributor Author

sgup432 commented Oct 9, 2024

As suggested by @jainankitk , will pause on this. As we are keeping a empty default value inside storage setting, but still rely on a non empty default storagePath value coming from outside. Might be confusing. Will see if there is a way to do it.

Copy link
Collaborator

@jainankitk jainankitk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the changes look fine as such, I have couple of concerns with including this storage path setting:

  • Even though default setting is configured as blank, we are internally using some default value which is not very transparent for the users. Ideally they should be able to see that value using _cluster/settings?include_defaults=true
  • Any disk storage path outside of data directory will not be accounted for within the DiskThreshold circuit breakers, that puts OpenSearch cluster at risk of going down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants