<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: Cassandra Caching Questions</title>
		<link>http://www.datastax.com/support-forums/topic/cassandra-caching-questions</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Mon, 20 May 2013 05:33:59 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/cassandra-caching-questions" rel="self" type="application/rss+xml" />

		<item>
			<title>joaquin on "Cassandra Caching Questions"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-caching-questions#post-1694</link>
			<pubDate>Wed, 18 Apr 2012 19:04:19 +0000</pubDate>
			<dc:creator>joaquin</dc:creator>
			<guid isPermaLink="false">1694@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;To answer your other questions:&#60;br /&#62;
3. These settings are cluster level and not node level, right?&#60;/p&#62;
&#60;p&#62;Correct, almost all settings that can be changed via CQL and the cassandra-cli are cluster level.&#60;br /&#62;
The cassandra.yaml and cassandra-env.sh file are, for the most part, node level. If set incorrectly according to cluster settings, you will error out and not be able to join the cluster as a safety measure.&#60;/p&#62;
&#60;p&#62;4. When inserting into the Cassandra cluster, before the MemTable is flushed to the SSTable, if we make a query to data that is currently in the MemTable, will it fetch it directly from memory (MemTable) then? Will the MemTable memory (for inserts) share the same configuration (row/key cache size) and space as the cache memory for reads?&#60;/p&#62;
&#60;p&#62;Yes, queries will check the MemTables first, then cache, then disk. &#60;/p&#62;
&#60;p&#62;No, these are two different spaces. Memtables can be configured in the cassandra.yaml, but the default of 1/3 of your total heap space is typically a great setting.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Joaquin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>khahn on "Cassandra Caching Questions"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-caching-questions#post-1627</link>
			<pubDate>Sun, 15 Apr 2012 20:18:04 +0000</pubDate>
			<dc:creator>khahn</dc:creator>
			<guid isPermaLink="false">1627@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Another correction: The row_cache_save_period_in_seconds and key_cache_save_period_in_seconds are obsolete. They no longer do anything. Sorry for the confusion.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>khahn on "Cassandra Caching Questions"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-caching-questions#post-1624</link>
			<pubDate>Sat, 14 Apr 2012 23:24:57 +0000</pubDate>
			<dc:creator>khahn</dc:creator>
			<guid isPermaLink="false">1624@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Regarding your question 5, please see &#60;a href=&#34;http://www.datastax.com/docs/1.0/operations/tuning&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/docs/1.0/operations/tuning&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>khahn on "Cassandra Caching Questions"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-caching-questions#post-1623</link>
			<pubDate>Sat, 14 Apr 2012 22:06:46 +0000</pubDate>
			<dc:creator>khahn</dc:creator>
			<guid isPermaLink="false">1623@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Correction: Use CLI. For example, &#60;a href=&#34;http://comments.gmane.org/gmane.comp.db.cassandra.user/21967&#34; rel=&#34;nofollow&#34;&#62;http://comments.gmane.org/gmane.comp.db.cassandra.user/21967&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>khahn on "Cassandra Caching Questions"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-caching-questions#post-1622</link>
			<pubDate>Sat, 14 Apr 2012 19:15:45 +0000</pubDate>
			<dc:creator>khahn</dc:creator>
			<guid isPermaLink="false">1622@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;To answer your first question, you can use CQLsh 2.0 to set these column family attributes. For example, ALTER TABLE addamsFamily WITH comment = 'A most excellent and useful column family'  AND row_cache_save_period_in_seconds = 1;&#60;/p&#62;
&#60;p&#62;Here is more information from our docs: &#60;/p&#62;
&#60;p&#62;key_cache_save_period_in_seconds&#60;br /&#62;
Sets number of seconds between saving key caches: the key caches can be saved&#60;br /&#62;
periodically, and if one exists on startup it will be loaded.  This property is called &#60;code&#62;&#60;/code&#62;key_cache_save_period&#60;code&#62;&#60;/code&#62; in the &#60;code&#62;&#60;/code&#62;cassandra-cli&#60;code&#62;&#60;/code&#62; client.&#60;/p&#62;
&#60;p&#62;row_cache_save_period_in_seconds&#60;br /&#62;
Sets the number of seconds between saving row caches: the row caches can be saved periodically, and if one exists on startup it will be loaded.&#60;/p&#62;
&#60;p&#62;Sorry, I can only provide a partial response. Hope it helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Cassandra Caching Questions"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-caching-questions#post-1597</link>
			<pubDate>Thu, 12 Apr 2012 01:28:16 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1597@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi friends,&#60;/p&#62;
&#60;p&#62;I am currently doing read performance tuning and had a few questions on Cassandra caching:&#60;/p&#62;
&#60;p&#62;From describe keyspace, I see these two settings under the ColumnFamily section:&#60;br /&#62;
      Row cache size / save period in seconds / keys to save : 0.0/0/all&#60;br /&#62;
      Key cache size / save period in seconds: 200000.0/14400&#60;/p&#62;
&#60;p&#62;1. I understand the row/key cache sizes can be set, how is the save period in seconds set?&#60;br /&#62;
2. If there is x rows in cache, will these rows get flushed regardless after however many seconds set above in the save period (even if the cache doesn’t fill up)?&#60;br /&#62;
3. These settings are cluster level and not node level, right?&#60;br /&#62;
4. When inserting into the Cassandra cluster, before the MemTable is flushed to the SSTable, if we make a query to data that is currently in the MemTable, will it fetch it directly from memory (MemTable) then?  Will the MemTable memory (for inserts) share the same configuration (row/key cache size) and space as the cache memory for reads?&#60;br /&#62;
5. How does the caching mechanism work?  Least recently read, first to leave the cache?&#60;/p&#62;
&#60;p&#62;I know this is quite a few questions, partial responses would be awesome too.  Thanks so much in advance!&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Alvin
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
