caching - Cassandra -What is really happens once Key-cache get filled -
consider have configured 1 mb of key-cache (consider can hold 13000 of keys ).
then wrote records in column family(say 20000).
then read @ first (all keys sequentially in same order used write ), , keys started stored in key-cache.
when read reached @ 13000 key cache filled completely.
what happen key-cache when next keys read? (which key removed newly read key ?).
key-cache following fifo or lifo or random out ?.
key cache uses concurrentlinkedhashmap
underneath , hence eviction policy lru (least used).
https://code.google.com/p/concurrentlinkedhashmap/#features
https://code.google.com/p/concurrentlinkedhashmap/wiki/design#beyond_lru
Comments
Post a Comment