incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Key cache capacity: 1 when using KeysCached="50%"
Date Mon, 24 May 2010 15:30:33 GMT
If you really want a cache capacity of 0 then you need to use 0
explicitly, otherwise the % versions will give you at least 1.

On Mon, May 24, 2010 at 12:34 AM, Ran Tavory <rantav@gmail.com> wrote:
> I've noticed that when defining KeysCached="50%" (or KeysCached="100%" and I
> didn't test other values with %) then cfstats reports Key cache capacity: 1
> This looks weird... is this expected? (version 0.6.1)
> For example, in the default configuration:
>       <ColumnFamily Name="Super2"
>                     ColumnType="Super"
>                     CompareWith="UTF8Type"
>                     CompareSubcolumnsWith="UTF8Type"
>                     RowsCached="10000"
>                     KeysCached="50%"/>
>
> ----------------
> Keyspace: Keyspace1
>         Read Count: 0
>         Read Latency: NaN ms.
>         Write Count: 0
>         Write Latency: NaN ms.
>         Pending Tasks: 0
>                 Column Family: Super1
>                 SSTable count: 0
>                 Space used (live): 0
>                 Space used (total): 0
>                 Memtable Columns Count: 0
>                 Memtable Data Size: 0
>                 Memtable Switch Count: 0
>                 Read Count: 0
>                 Read Latency: NaN ms.
>                 Write Count: 0
>                 Write Latency: NaN ms.
>                 Pending Tasks: 0
>                 Key cache capacity: 200000
>                 Key cache size: 0
>                 Key cache hit rate: NaN
>                 Row cache: disabled
>                 Compacted row minimum size: 0
>                 Compacted row maximum size: 0
>                 Compacted row mean size: 0
>                 Column Family: Super2
>                 SSTable count: 0
>                 Space used (live): 0
>                 Space used (total): 0
>                 Memtable Columns Count: 0
>                 Memtable Data Size: 0
>                 Memtable Switch Count: 0
>                 Read Count: 0
>                 Read Latency: NaN ms.
>                 Write Count: 0
>                 Write Latency: NaN ms.
>                 Pending Tasks: 0
>                 Key cache capacity: 1
>                 Key cache size: 0
>                 Key cache hit rate: NaN
>                 Row cache capacity: 10000
>                 Row cache size: 0
>                 Row cache hit rate: NaN
>                 Compacted row minimum size: 0
>                 Compacted row maximum size: 0
>                 Compacted row mean size: 0
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Mime
View raw message