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

Improve pre-cleanup estimate of disk space required

    XMLWordPrintableJSON

Details

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

    Description

      Compaction sums the sizes of all ranges to estimate the output size in order to pick a target drive. Anti-compactions directly drop ranges from sstables, and the volume of data dropped can easily be calculated using the SSTable index. Using this knowledge in our estimate in ColumnFamilyStore.getExpectedCompactedFileSize would allow 'nodetool cleanup' to run when less than 50% of disk is available, in the case where ranges are being dropped (post node-move).

      Attachments

        1. 1404-1.1.txt
          5 kB
          Yuki Morishita

        Issue Links

          Activity

            People

              yukim Yuki Morishita
              stuhood Stu Hood
              Yuki Morishita
              Jonathan Ellis
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: