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

Update semantics for MinObject in stat-cache in march_2024_release #1787

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/semantics.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@ The behavior of stat cache is controlled by the following flags/config parameter
This has been deprecated (starting v2.0) and is ignored if the user sets `metadata-cache:stat-cache-max-size-mb` .
This can be set to 0 for disabling stat-cache and > 0 for setting a finite stat-cache size.

If neither of these two is set, then a size of 32MB is used, which is equivalent to about 12710 stat-cache entries (assuming just as many negative stat-cache entries).
If neither of these two is set, then a size of 32MB is used, which is
equivalent to about 20460 stat-cache entries (assuming just as many negative
stat-cache entries).

If you have more objects (folders or files) than that in your bucket that you want to access, then you may want to increase this, otherwise the caching will not function properly when listing that folder's contents:
If you have more objects (folders or files) than that in your bucket that you
want to access, then you may want to increase this, otherwise the caching
will not function properly when listing that folder's contents:
- ListObjects will return information on the items within the folder. Each item's data is cached
- Because there are more objects than cache capacity, the earliest entries will be evicted
- The linux kernel then asks for a little more information on each file.
Expand Down