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

Get hdfs used space from FsDatasetImpl#volumeMap#ReplicaInfo in memory instead of df/du

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0, 2.7.0, 2.8.0, 2.9.0, 3.0.0, 3.1.0
    • Fix Version/s: 2.10.0, 3.0.4, 3.3.0, 3.1.4, 3.2.2
    • Component/s: datanode, performance
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      There are two ways of DU/DF getting used space that are insufficient.

      1.  Running DU across lots of disks is very expensive and running all of the processes at the same time creates a noticeable IO spike.
      2.  Running DF is inaccurate when the disk sharing by multiple datanode or other servers.

       Getting hdfs used space from  FsDatasetImpl#volumeMap#ReplicaInfos in memory is very small and accurate. 

        Attachments

        1. HDFS-14313.000.patch
          32 kB
          Lisheng Sun
        2. HDFS-14313.001.patch
          23 kB
          Lisheng Sun
        3. HDFS-14313.002.patch
          23 kB
          Lisheng Sun
        4. HDFS-14313.003.patch
          23 kB
          Lisheng Sun
        5. HDFS-14313.004.patch
          24 kB
          Lisheng Sun
        6. HDFS-14313.005.patch
          24 kB
          Lisheng Sun
        7. HDFS-14313.006.patch
          25 kB
          Lisheng Sun
        8. HDFS-14313.007.patch
          26 kB
          Lisheng Sun
        9. HDFS-14313.008.patch
          20 kB
          Lisheng Sun
        10. HDFS-14313.009.patch
          20 kB
          Lisheng Sun
        11. HDFS-14313.010.patch
          22 kB
          Lisheng Sun
        12. HDFS-14313.011.patch
          22 kB
          Lisheng Sun
        13. HDFS-14313.012.patch
          23 kB
          Lisheng Sun
        14. HDFS-14313.013.patch
          23 kB
          Lisheng Sun
        15. HDFS-14313.014.patch
          26 kB
          Lisheng Sun
        16. HDFS-14313.branch-3.0.v1.patch
          54 kB
          Lisheng Sun
        17. HDFS-14313.branch-3.0.v2.patch
          27 kB
          Lisheng Sun
        18. HDFS-14313.branch-3.1.patch
          26 kB
          Wei-Chiu Chuang
        19. HDFS-14313.branch-3.2.patch
          25 kB
          Wei-Chiu Chuang
        20. HDFS-14313.branch-3.v1.patch
          27 kB
          Lisheng Sun
        21. HDFS-14313-branch-2.v1.patch
          27 kB
          Lisheng Sun
        22. HDFS-14313-branch-2.v2.patch
          27 kB
          Lisheng Sun

          Issue Links

            Activity

              People

              • Assignee:
                leosun08 Lisheng Sun
                Reporter:
                leosun08 Lisheng Sun
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: