Skip to content

[Navy Cache] how are non-graceful shutdowns handled? #241

Answered by haowu14
dannycho7 asked this question in Q&A
Discussion options

You must be logged in to vote

CacheLib serves as a cache, not a storage. So CacheLib does not support transactions and it has no guarantees for non-graceful shut down. If that happens we advise our users to clear the cache.

limit its memory usage for metadata

For bighash, the overhead is pretty much the bloom filters which can be bounded.
For blockcache, you can estimate the RAM overhead of each item is about 16 bytes.

Let's say you have 1TB flash space and decided to use ~400GB bighash and 600GB block cache and you've set the threshold for large item to be 1KB.

In bighash, each bucket has a bloom filter, and say you have 4 hashes and 8 bits for each hash table that's 4 bytes per bucket. Each bucket is 4KB, which me…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dannycho7
Comment options

@dannycho7
Comment options

Answer selected by dannycho7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants