cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Yaskevich (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-2572) cassandra_cli: CREATE CF HELP should list option as key_cache_save_period instead of keys_cached_save_period
Date Wed, 27 Apr 2011 10:19:03 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-2572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pavel Yaskevich updated CASSANDRA-2572:
---------------------------------------

    Attachment: CASSANDRA-2572.patch

changed doc for 0.8 (can be applied on both cassandra-0.8 and trunk without any problems),
0.7 is not affected by this bug.

> cassandra_cli: CREATE CF HELP should list option as key_cache_save_period instead of
keys_cached_save_period
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2572
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2572
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 0.7.0, 0.8 beta 1
>            Reporter: Cathy Daw
>            Assignee: Pavel Yaskevich
>            Priority: Trivial
>             Fix For: 0.8.0
>
>         Attachments: CASSANDRA-0.7-2572.patch, CASSANDRA-2572.patch
>
>
> *cassandra-cli: output from create cf command*
> {noformat}
> [default@cqldb]  create column family supa_dupa2 with keys_cached_save_period = 124000;
> No enum const class org.apache.cassandra.cli.CliClient$ColumnFamilyArgument.KEYS_CACHED_SAVE_PERIOD
> {noformat}
> *cassandra-cli: help create column family*
> {noformat}
> - keys_cached_save_period: Duration in seconds after which Cassandra should
>   safe the keys cache. Caches are saved to saved_caches_directory as
>   specified in conf/Cassandra.yaml. Default is 14400 or 4 hours.
>   Saved caches greatly improve cold-start speeds, and is relatively cheap in
>   terms of I/O for the key cache. Row cache saving is much more expensive and
>   has limited use.
> {noformat}
> *cqlsh: documentation for create column family options*
> {noformat}
> key_cache_save_period_in_seconds	14400	Number of seconds between saving key caches.
> {noformat}
> *cqlsh: this actually works*
> {noformat}
> cqlsh>  CREATE COLUMNFAMILY cf1 (KEY varchar PRIMARY KEY) WITH key_cache_save_period_in_seconds=10000;
> {noformat}
> *cassandra-cli: CF definition via show keyspace*
> {noformat}
>     ColumnFamily: cf1
>       Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type
>       Default column value validator: org.apache.cassandra.db.marshal.UTF8Type
>       Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
>       Row cache size / save period in seconds: 0.0/0
>       Key cache size / save period in seconds: 200000.0/10000
>       Memtable thresholds: 0.140625/30/1440 (millions of ops/MB/minutes)
>       GC grace seconds: 864000
>       Compaction min/max thresholds: 4/32
>       Read repair chance: 1.0
>       Replicate on write: true
>       Built indexes: []
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message