-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add dynamic cache limit based on heap size and apply SoftRefere…
…nce for snapshot repository data - Allow cache size configuration in `opensearch.yml`, adjustable within the range of 0-5% of heap memory. The default is set to 1%. - Applied `SoftReference` to cached repository data for efficient memory management under heap pressure. - Retained the JVM flag `opensearch.snapshot.cache.size.percentage` for adjusting cache size as a percentage of heap, but defaults to 500KB to minimize impact on existing users. Signed-off-by: inpink <[email protected]>
- Loading branch information
Showing
4 changed files
with
133 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters