Vishal Sharma
Vishal Sharma

Reputation: 1750

Partition Key Caching in Cassandra

Given a particular key_cache_size_in_mb in Cassandra's YAML file, when a cluster is started and we start inserting data, will the key_cache keep on increasing till it reaches the configured size i.e. will it keep all the keys cached till it reaches the configured size for the first time? If yes, what will happen once that size is reached? If no, then what's the algorithm which decides which keys should be cached and which keys should not be cached?

Upvotes: 1

Views: 459

Answers (1)

Chris Lohfink
Chris Lohfink

Reputation: 16400

Its a caffeine cache with a size based eviction. The cache will try to evict entries that have not been used recently or very often based on Window TinyLfu.

Upvotes: 3

Related Questions