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

Support custom paths of independent configuration and pool for hfile cleaner

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.1, 3.0.0-alpha-2, 2.4.10
    • 2.5.0, 3.0.0-alpha-3
    • master
    • None
    • Hide
      Configure the custom hifle paths (under archive directory), e.g. data/default/testTable1,data/default/testTable2 by "hbase.master.hfile.cleaner.custom.paths".
      Configure hfile cleaner classes for the custom paths by "hbase.master.hfilecleaner.custom.paths.plugins".
      Configure the shared pool size of custom hfile cleaner paths by "hbase.cleaner.custom.hfiles.pool.size".
      Show
      Configure the custom hifle paths (under archive directory), e.g. data/default/testTable1,data/default/testTable2 by "hbase.master.hfile.cleaner.custom.paths". Configure hfile cleaner classes for the custom paths by "hbase.master.hfilecleaner.custom.paths.plugins". Configure the shared pool size of custom hfile cleaner paths by "hbase.cleaner.custom.hfiles.pool.size".

    Description

      With this, we can clean some paths more quickly.

      We found in our cluster, when the very huge table with thousands of regions and high write throughputs and many snapshots tables on the same cluster, the speed of delete files in  archive path will lower than the speed of moved in files by compaction. Then archive may remains PB level data. 

      The bottleneck is in cleaner but not in the thread pool size or queue size. It is because there is synchronized lock in SnapshotFileCache, and a batch of files need once SnapshotFileCache#refreshCache(), which look through all the snapshot dirs.

      The speed of clear a path without the SnapshotHFileCleaner is thirty times faster.

      Attachments

        1. result.png
          161 kB
          Xiaolin Ha

        Activity

          People

            Xiaolin Ha Xiaolin Ha
            Xiaolin Ha Xiaolin Ha
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: