You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Kanwar Sangha <ka...@mavenir.com> on 2013/02/21 15:45:49 UTC

key cache size

Hi - What is the approximate overhead of the key cache ? Say each key is 50 bytes. What would be the overhead for this key in the key cache ?

Thanks,
Kanwar

Re: key cache size

Posted by aaron morton <aa...@thelastpickle.com>.
This is the key cache entry 
https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/cache/KeyCacheKey.java

Note that the Descriptor is re-used. 

If you want to see key cache metrics, including bytes used,  use nodetool info. 

Cheers
-----------------
Aaron Morton
Freelance Cassandra Developer
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 22/02/2013, at 3:45 AM, Kanwar Sangha <ka...@mavenir.com> wrote:

> Hi – What is the approximate overhead of the key cache ? Say each key is 50 bytes. What would be the overhead for this key in the key cache ?
>  
> Thanks,
> Kanwar