You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2010/06/01 16:15:40 UTC

[jira] Commented: (CASSANDRA-1129) Using KeysCached="xx%" results in Key cache capacity: 1

    [ https://issues.apache.org/jira/browse/CASSANDRA-1129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874019#action_12874019 ] 

Jonathan Ellis commented on CASSANDRA-1129:
-------------------------------------------

instead of overloading setCapacity to be the interface for both normal adjustments and manual overrides, let's split it up.  have setCapacity(value) be the mbean interface, setting a capacitySetManually boolean, and make a method updateCapacity(value) for internal use.  

> Using KeysCached="xx%" results in Key cache capacity: 1
> -------------------------------------------------------
>
>                 Key: CASSANDRA-1129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1129
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.6.1
>            Reporter: Ran Tavory
>            Priority: Minor
>             Fix For: 0.6.3
>
>         Attachments: 0001-CASSANDRA1129.patch, 0002-CASSANDRA1129.patch, KvAds-84.zip
>
>
> I don't know if this is a general bug or only something related to my instance, but for me (v0.6.1) 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
>       <ColumnFamily CompareWith="BytesType" Name="KvAds"
>         KeysCached="100%"
>         RowsCached="10000"
>         />
>                 Column Family: KvAds
>                 SSTable count: 7
>                 Space used (live): 797535964
>                 Space used (total): 797535964
>                 Memtable Columns Count: 42292
>                 Memtable Data Size: 10514176
>                 Memtable Switch Count: 24
>                 Read Count: 2563704
>                 Read Latency: 4.590 ms.
>                 Write Count: 1963804
>                 Write Latency: 0.025 ms.
>                 Pending Tasks: 0
>                 Key cache capacity: 1
>                 Key cache size: 1
>                 Key cache hit rate: 0.0
>                 Row cache capacity: 10000
>                 Row cache size: 10000
>                 Row cache hit rate: 0.2206178354382234
>                 Compacted row minimum size: 386
>                 Compacted row maximum size: 9808
>                 Compacted row mean size: 616
> I'll attach one of the sstable files from this CF

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.