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

Add more settings for Indices Request Cache #7160

Merged
merged 11 commits into from
May 17, 2024

Conversation

kiranprakash154
Copy link
Contributor

@kiranprakash154 kiranprakash154 commented May 15, 2024

Description

Add more settings related to cleanup of Indices Request Cache

Issues Resolved

#6300

Checklist

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

indices.request.cache.store.name: tiered_spillover: true
indices.request.cache.store.name: tiered_spillover
Copy link
Contributor Author

@kiranprakash154 kiranprakash154 May 15, 2024

Choose a reason for hiding this comment

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

@hdhalter This is a bug

Comment on lines 94 to 101
### Configuring cleanup

The following table lists the settings related to deletion of stale entries from the cache.

| Setting | Data type | Default | Description |
|:-----------------------------------------------------|:----------|:--------|:------------------------------------------------------------------------------------------------------------|
| `indices.requests.cache.cleanup.staleness_threshold` | String | `0%` | Defines the percentage of stale keys in the cache post which all stale cache entries are deleted. Optional. |
| `indices.requests.cache.cleanup.interval` | Time unit | `1m` | Defines the frequency at which the request cache's stale entries are deleted. Optional. |
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are the changes I'm introducing as new settings

_search-plugins/caching/tiered-cache.md Outdated Show resolved Hide resolved
_search-plugins/caching/tiered-cache.md Outdated Show resolved Hide resolved
_search-plugins/caching/tiered-cache.md Outdated Show resolved Hide resolved
_search-plugins/caching/tiered-cache.md Outdated Show resolved Hide resolved
_search-plugins/caching/tiered-cache.md Outdated Show resolved Hide resolved
_search-plugins/caching/tiered-cache.md Outdated Show resolved Hide resolved
_search-plugins/caching/tiered-cache.md Outdated Show resolved Hide resolved
_search-plugins/caching/tiered-cache.md Outdated Show resolved Hide resolved

| Setting | Data type | Default | Description |
|:-----------------------------------------------------|:----------|:--------|:------------------------------------------------------------------------------------------------------------|
| `indices.requests.cache.cleanup.staleness_threshold` | String | `0%` | Defines the percentage of stale keys in the cache post which all stale cache entries are deleted. Optional. |
Copy link
Collaborator

@Naarcha-AWS Naarcha-AWS May 16, 2024

Choose a reason for hiding this comment

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

Suggested change
| `indices.requests.cache.cleanup.staleness_threshold` | String | `0%` | Defines the percentage of stale keys in the cache post which all stale cache entries are deleted. Optional. |
| `indices.requests.cache.cleanup.staleness_threshold` | String | `0%` | Defines the percentage of stale keys in the cache. After identification, all stale cache entries are deleted. Optional. |

Copy link
Contributor Author

@kiranprakash154 kiranprakash154 May 16, 2024

Choose a reason for hiding this comment

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

I dont think post. All makes sense.

What i meant to say is

Defines the percentage of stale keys in the cache after which all stale cache entries are deleted

_search-plugins/caching/tiered-cache.md Outdated Show resolved Hide resolved
@kiranprakash154
Copy link
Contributor Author

Hi @Naarcha-AWS , I have addressed all your comments, can you review again ?

@Naarcha-AWS Naarcha-AWS self-assigned this May 16, 2024
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
kiranprakash154 and others added 5 commits May 17, 2024 07:49
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
@Naarcha-AWS Naarcha-AWS merged commit fdf6967 into opensearch-project:main May 17, 2024
5 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 17, 2024
* formatting changes recommended by IDE

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* bug fix

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* cleanup related entries

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* formatting changes recommended by IDE

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* cleanup related entries

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update tiered-cache.md

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* revert table settings
Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* cleanup settings

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update _search-plugins/caching/tiered-cache.md

Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Apply suggestions from code review

Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>

* Apply suggestions from code review

Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>

---------

Signed-off-by: Kiran Prakash <awskiran@amazon.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
(cherry picked from commit fdf6967)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@kiranprakash154 kiranprakash154 deleted the kp/tc-settings branch May 17, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - Doc review PR: Doc review in progress backport 2.14 PR: Backport label for 2.14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants