Re: What is substituting keys_cached column family argument
Rob, Have you played with this I have many CFs, some big some small some using large caches some using small ones, some that take many requests, some that take a few. Over time I have cooked up a strategy for how to share the cache love, even thought it may not be the best solution to the problem I feel it makes sense. I can not figure out how I am going to be happy with global caches that I do not control the size. What is your take on this? Edward On Wed, Dec 5, 2012 at 2:05 PM, Rob Coli rc...@palominodb.com wrote: On Wed, Dec 5, 2012 at 9:06 AM, Roman Yankin ro...@cognitivematch.com wrote: In Cassandra v 0.7 there was a column family property called keys_cached, now it's gone and I'm struggling to understand which of the below properties it's now substituted (if substituted at all)? Key and row caches are global in modern cassandra. You opt CFs out of the key cache, not opt in, because the default setting is keys_only on a per-CF basis. http://www.datastax.com/docs/1.1/configuration/node_configuration#row-cache-keys-to-save http://www.datastax.com/docs/1.1/configuration/node_configuration#key-cache-keys-to-save http://www.datastax.com/docs/1.1/configuration/storage_configuration#caching =Rob -- =Robert Coli AIMGTALK - rc...@palominodb.com YAHOO - rcoli.palominob SKYPE - rcoli_palominodb
What is substituting keys_cached column family argument
Problem: If I do something like this in Cassandra 1.1.7 I would get IAE: create column family travelers with keys_cached=100 and column_metadata=[{column_name: t, validation_class: UTF8Type, index_type: KEYS}]; java.lang.IllegalArgumentException: No enum const class org.apache.cassandra.cli.CliClient$ColumnFamilyArgument.KEYS_CACHED In Cassandra v 0.7 there was a column family property called keys_cached, now it's gone and I'm struggling to understand which of the below properties it's now substituted (if substituted at all)? The below snippet comes from org.apache.cassandra.cli.CliClient class from source v 1.1.7 protected enum ColumnFamilyArgument { COLUMN_TYPE, COMPARATOR, SUBCOMPARATOR, COMMENT, READ_REPAIR_CHANCE, DCLOCAL_READ_REPAIR_CHANCE, GC_GRACE, COLUMN_METADATA, MEMTABLE_OPERATIONS, MEMTABLE_THROUGHPUT, DEFAULT_VALIDATION_CLASS, MIN_COMPACTION_THRESHOLD, MAX_COMPACTION_THRESHOLD, REPLICATE_ON_WRITE, KEY_VALIDATION_CLASS, COMPACTION_STRATEGY, COMPACTION_STRATEGY_OPTIONS, COMPRESSION_OPTIONS, BLOOM_FILTER_FP_CHANCE, CACHING } Thanks, Roman
Re: What is substituting keys_cached column family argument
On Wed, Dec 5, 2012 at 9:06 AM, Roman Yankin ro...@cognitivematch.com wrote: In Cassandra v 0.7 there was a column family property called keys_cached, now it's gone and I'm struggling to understand which of the below properties it's now substituted (if substituted at all)? Key and row caches are global in modern cassandra. You opt CFs out of the key cache, not opt in, because the default setting is keys_only on a per-CF basis. http://www.datastax.com/docs/1.1/configuration/node_configuration#row-cache-keys-to-save http://www.datastax.com/docs/1.1/configuration/node_configuration#key-cache-keys-to-save http://www.datastax.com/docs/1.1/configuration/storage_configuration#caching =Rob -- =Robert Coli AIMGTALK - rc...@palominodb.com YAHOO - rcoli.palominob SKYPE - rcoli_palominodb