-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v23.2.x] cloud: Add config options to trigger cache trim
When the cloud storage cache is completely filled, puts to the cache are blocked. This prevents readers from progressing. In some clusters the trim operation can take a long time, up to hours. When this happens, readers will time out, generating errors. This commit adds two configuration options that control when the trim is triggered. By setting these lower than the caches maximum size, cloud storage can begin a trim operation before the cache is completely filled, allowing readers to progress as the trim is going on in the background. - cloud_storage_cache_trim_threshold_size - cloud_storage_cache_trim_threshold_objects When a put occurs, if the cache is over these limits it triggers a trim in the background. (cherry picked from commit 027632c)
- Loading branch information
Showing
6 changed files
with
508 additions
and
13 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
Oops, something went wrong.