Skip to content

Does cachelib support persist cache by call specific API? #113

Answered by sathyaphoenix
yiguolei asked this question in Q&A
Discussion options

You must be logged in to vote

Unlike storage engines, cachelib does not offer crash consistent storage of items. for caches, this is not a deal breaker since durability is not a prime concern for the cache. Besides, caches operate with background evictions, so the application already expects the cache to be empty or missing items. In steady state, cachelib has DRAM data structures that need to be persisted for recovery on restart. If a cache process is receiving a kill -9, we can not guarantee the state of these DRAM data structures to be consistent for shutdown. So I would not recommend catching the kill signal and doing a shutdown unless you can guarantee that the application threads have stopped accessing the cache…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@yiguolei
Comment options

@sathyaphoenix
Comment options

@sathyaphoenix
Comment options

@yiguolei
Comment options

@sathyaphoenix
Comment options

Answer selected by sathyaphoenix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #110 on January 18, 2022 21:29.