Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-16412

Add metrics to support obtaining file size distribution

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.4.0
    • None
    • namenode
    • None

    Description

      Use RangeMapRange "Map<Long, MutableLong> fileSizeRange" to store counters at different intervals. RangeMap key is a specific interval, and value is the counter corresponding to the interval.

      Counter update:
      When the file size changes or the file is deleted, the file size is obtained, and the counter in the corresponding interval is called to update the counter.

      Interval division:
      The default is to initialize the startup according to the following interval, or it can be initialized through the configuration file.
      0MB
      0-16MB
      16-32MB
      32-64MB
      64-128MB
      128-256MB
      256-512MB
      >512MB

      Attachments

        Activity

          People

            zhuxiangyi Xiangyi Zhu
            zhuxiangyi Xiangyi Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: