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

Allow minor Parallel Compaction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Hi,

      According to the dev's list discussion (1) I've patched the CompactionManager to allow parallel compaction.

      Mainly it splits the sstables to compact in the desired buckets, configured by a new parameter: compaction_parallelism with the current default of "1".
      Then, it just submits the units of work to a new executor and waits for the finalization.

      The patch was created in the trunk, so I don't know the exact affected version, I assume that is 0.8.
      I'll try to apply this patch to 0.6.X also for my current production installation, and then reattach it.

      (1) http://markmail.org/thread/cldnqfh3s3nufnke

      Attachments

        1. 1876-reformatted.txt
          15 kB
          Jonathan Ellis
        2. compactionPatch-V2.txt
          16 kB
          Germán Kondolf
        3. compactionPatch-V3.txt
          17 kB
          Germán Kondolf

        Issue Links

          Activity

            People

              Unassigned Unassigned
              germanklf Germán Kondolf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: