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

log number of combined/merged rows during a compaction

    XMLWordPrintableJSON

Details

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

    Description

      we already log some details about compactions but it would be useful to know how many rows were merged (resulting in "useful" work) and how many were unique (representing "wasted work").

      the simple approach requires two additional counters (one for unique rows, one for merged rows). As the merge join is progressing if two or more rows are combined, tick the joined counter. If a row is simply copied tick the unique counter.

      a more complete solution would be to keep a separate count for each number of merges. This would require number_of_files_being_merged counters. If no rows were merged, tick counters[0], if two rows were merged tick counters[1] and so on

      Attachments

        1. 4894-1.2.txt
          5 kB
          Yuki Morishita

        Activity

          People

            yukim Yuki Morishita
            mdennis Matthew F. Dennis
            Yuki Morishita
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: