Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-827

change throttle in GarbageCollector to use either "by entry" or "by byte"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.0
    • 4.4.0
    • bookkeeper-server
    • None

    Description

      Current bookie compaction in GarbageCollector has setting: 'compactionRate'. It is throttling and limiting the compaction by entries.
      But from a bandwidth perspective, it would be good that we could throttle and limit compaction by bytes, which would really reflect the bandwidth of disk.

      So in this enhancement, we added another "by bytes" option when doing compaction in GarbageCollector:
      "boolean isThrottleByBytes": true when use by bytes, false when use by entries;
      "int compactionRateByEntries": by entries, number of concurrent entries;
      "int compactionRateByBytes": by bytes, number of bytes of entries before flush.

      Attachments

        1. BOOKKEEPER-827-v2.patch
          13 kB
          Jia Zhai
        2. BOOKKEEPER-827-v3.patch
          13 kB
          Jia Zhai
        3. BOOKKEEPER-827-v4.patch
          11 kB
          Jia Zhai

        Activity

          People

            zhaijia Jia Zhai
            zhaijia Jia Zhai
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: