50% of 0 will be rounded up to 1.
-----Original Message----- From: "Ran Tavory" <ran...@gmail.com> Sent: Monday, May 24, 2010 12:34am To: user@cassandra.apache.org Subject: Key cache capacity: 1 when using KeysCached="50%" 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