Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-1608

Redesigned Compaction

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments


    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.0.0
    • None


      After seeing the I/O issues in CASSANDRA-1470, I've been doing some more thinking on this subject that I wanted to lay out.

      I propose we redo the concept of how compaction works in Cassandra. At the moment, compaction is kicked off based on a write access pattern, not read access pattern. In most cases, you want the opposite. You want to be able to track how well each SSTable is performing in the system. If we were to keep statistics in-memory of each SSTable, prioritize them based on most accessed, and bloom filter hit/miss ratios, we could intelligently group sstables that are being read most often and schedule them for compaction. We could also schedule lower priority maintenance on SSTable's not often accessed.

      I also propose we limit the size of each SSTable to a fix sized, that gives us the ability to better utilize our bloom filters in a predictable manner. At the moment after a certain size, the bloom filters become less reliable. This would also allow us to group data most accessed. Currently the size of an SSTable can grow to a point where large portions of the data might not actually be accessed as often.


        1. 1608-v5.txt
          77 kB
          Benjamin Coverston
        2. 1608-v4.txt
          62 kB
          Jonathan Ellis
        3. 1608-v2.txt
          37 kB
          Jonathan Ellis
        4. 1608-22082011.txt
          67 kB
          Benjamin Coverston

        Issue Links


          This comment will be Viewable by All Users Viewable by All Users


            bcoverston Benjamin Coverston Assign to me
            lenn0x Chris Goffinet
            Benjamin Coverston
            Jonathan Ellis
            12 Vote for this issue
            29 Start watching this issue




                Issue deployment