<?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: Major compaction yes/no ?</title>
		<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 10:21:34 +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/major-compaction-yesno" rel="self" type="application/rss+xml" />

		<item>
			<title>jbellis on "Major compaction yes/no ?"</title>
			<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno#post-1276</link>
			<pubDate>Fri, 02 Mar 2012 16:58:16 +0000</pubDate>
			<dc:creator>jbellis</dc:creator>
			<guid isPermaLink="false">1276@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Reduce the compaction throughput setting.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Major compaction yes/no ?"</title>
			<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno#post-1274</link>
			<pubDate>Fri, 02 Mar 2012 08:03:35 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1274@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thank you both for your answers, much appreciated!&#60;/p&#62;
&#60;p&#62;I don't think leveled compaction is an improvement for us. we do mostly writes and are not concerned with duplicate data. Our biggest worry at the moment are minor compactions on CF's that are quite big (100GB). they make the node response very slow to our reads.&#60;/p&#62;
&#60;p&#62;Any tips on solving slow reads if a node is doing (minor) compaction on a big CF ?&#60;/p&#62;
&#60;p&#62;thanks a bunch.&#60;br /&#62;
Fransen
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jbellis on "Major compaction yes/no ?"</title>
			<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno#post-1256</link>
			<pubDate>Wed, 29 Feb 2012 04:05:09 +0000</pubDate>
			<dc:creator>jbellis</dc:creator>
			<guid isPermaLink="false">1256@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;It isn't that minor compactions are run less frequently because of the major compaction per se, but because major compaction creates One Big Data File by definition, it will be some time before new data files get large enough to be eligible to be compacted with it.  Newly flushed data files will thus continue to be compacted with each other normally.&#60;/p&#62;
&#60;p&#62;If you're finding that normal minor compactions aren't doing a good enough job of merging together overwritten row versions, you should give the leveled compaction strategy a try.  I wrote more about compaction in general and leveled in particular here: &#60;a href=&#34;http://www.datastax.com/dev/blog/leveled-compaction-in-apache-cassandra&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/dev/blog/leveled-compaction-in-apache-cassandra&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joaquin on "Major compaction yes/no ?"</title>
			<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno#post-1251</link>
			<pubDate>Wed, 29 Feb 2012 01:56:25 +0000</pubDate>
			<dc:creator>joaquin</dc:creator>
			<guid isPermaLink="false">1251@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Not a problem Fransen.&#60;/p&#62;
&#60;p&#62;More info on compaction can be found here:&#60;br /&#62;
&#60;a href=&#34;http://www.datastax.com/docs/1.0/dml/about_writes#about-compaction&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/docs/1.0/dml/about_writes#about-compaction&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Without major compactions, that big sstable won't go through any of those changes.&#60;/p&#62;
&#60;p&#62;If you won't be reading much from that keyspace and are noticing minor compaction still occurring then you should relatively not have to worry.&#60;/p&#62;
&#60;p&#62;If you wish to empty out the entire data directory and nuke all the previous information, this is fine too as long as you understand you lose that data. If that's the case, then the record of major compactions will be ultimately deleted.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Joaquin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Major compaction yes/no ?"</title>
			<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno#post-1250</link>
			<pubDate>Tue, 28 Feb 2012 23:20:35 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1250@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;thanks again Joaquin !&#60;/p&#62;
&#60;p&#62;hmm thats disappointing... so even a complete emptying of the data directory will not work?&#60;/p&#62;
&#60;p&#62;What will happen if we don't do those major compactions?&#60;br /&#62;
In our setup, i can see that the node that had one major compaction in the past it is doing normal compactions sometimes...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joaquin on "Major compaction yes/no ?"</title>
			<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno#post-1249</link>
			<pubDate>Tue, 28 Feb 2012 21:49:52 +0000</pubDate>
			<dc:creator>joaquin</dc:creator>
			<guid isPermaLink="false">1249@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;No, I'm sorry, once a major compaction is run, you have to stick with performing them. Typically once per gc_grace_period.&#60;/p&#62;
&#60;p&#62;You should probably look into leveled compaction if you are on 1.0, this should help relieve some of the stress and process of having to run major compactions.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.datastax.com/dev/blog/leveled-compaction-in-apache-cassandra&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/dev/blog/leveled-compaction-in-apache-cassandra&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Joaquin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Major compaction yes/no ?"</title>
			<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno#post-1248</link>
			<pubDate>Tue, 28 Feb 2012 20:22:41 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1248@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;&#34;Also, once you run a major compaction, automatic minor compactions are no longer triggered frequently forcing you to manually run major compactions on a routine basis.&#34;&#60;/p&#62;
&#60;p&#62;does anybody know how to undo this ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Major compaction yes/no ?"</title>
			<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno#post-1179</link>
			<pubDate>Mon, 20 Feb 2012 00:04:55 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1179@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thanks Joaquin,&#60;/p&#62;
&#60;p&#62;just a follow up:&#60;br /&#62;
We did do one major compaction on one of our nodes in the past, would we be able to so to speak 'reset' it? perhaps by doing a full data reload on that node?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joaquin on "Major compaction yes/no ?"</title>
			<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno#post-1174</link>
			<pubDate>Fri, 17 Feb 2012 17:51:54 +0000</pubDate>
			<dc:creator>joaquin</dc:creator>
			<guid isPermaLink="false">1174@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hello Walt,&#60;/p&#62;
&#60;p&#62;Most times those who run major compactions are doing so since they had already run the first major compaction and need to continue doing so.&#60;/p&#62;
&#60;p&#62;If you have something like a queue application, which generates many tombstones, with SSDs, then running major compaction isn't much of an issue and thus recommended.&#60;/p&#62;
&#60;p&#62;If your workload generates many tombstones, then major compaction may be an option, provided you can handle the IO. But in most cases you're better off without major compactions and instead properly tuning your compaction:&#60;br /&#62;
&#60;a href=&#34;http://www.datastax.com/docs/1.0/operations/tuning#tuning-compaction&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/docs/1.0/operations/tuning#tuning-compaction&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Joaquin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Major compaction yes/no ?"</title>
			<link>http://www.datastax.com/support-forums/topic/major-compaction-yesno#post-1173</link>
			<pubDate>Fri, 17 Feb 2012 09:10:26 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1173@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;On this documentation page from Datastax (&#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;) they suggests to NOT run major compaction (all the way at the bottom), however elsewhere on the net i read that people still do major compaction.&#60;/p&#62;
&#60;p&#62;Perhaps somebody can explain when to not run it and when you should?&#60;/p&#62;
&#60;p&#62;thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
