Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-64

Add max number of mapfiles to compact at one time giveing us a minor & major compaction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Later
    • None
    • None
    • regionserver
    • None

    Description

      Currently we do compaction on a region when the hbase.hstore.compactionThreshold is reached - default 3

      I thank we should configure a max number of mapfiles to compact at one time simulator to doing a minor compaction in bigtable. This keep compaction's form getting tied up in one region to long letting other regions get way to many memcache flushes making compaction take longer and longer for each region

      If we did that when a regions updates start to slack off the max number will eventuly include all mapfiles causeing a major compaction on that region. Unlike big table this would leave the master out of the process and letting the region server handle the major compaction when it has time.

      When doing a minor compaction on a few files I thank we should compact the newest mapfiles first leave the larger/older ones for when we have low updates to a region.

      Attachments

        1. flag.patch
          2 kB
          Michael Stack
        2. flag-v2.patch
          4 kB
          Michael Stack
        3. twice.patch
          1 kB
          Michael Stack

        Issue Links

          Activity

            People

              Unassigned Unassigned
              viper799 Billy Pearson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: