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

Allow to use different algorithms to choose compaction candidates.

    XMLWordPrintableJSON

Details

    Description

      I'm experimenting different algorithms for choosing the compaction candidates, for leveled compaction.

      Instead of the round robin selection by default, one of our experiment is to choose the candidates with least overlapping sstable sizes. And I see significant drop of cpu usage, and reduce of compacted bytes count, in one of our write heavy system.

      I think it's useful to make it configurable for how to choose the compaction candidates.

      The idea is from rocksdb. (http://rocksdb.org/blog/2921/compaction_pri/).

      Attachments

        Issue Links

          Activity

            People

              dikanggu Dikang Gu
              dikanggu Dikang Gu
              Dikang Gu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: