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

block replica reads get hot-spots due to NetworkTopology#pseudoSortByDistance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.0.2-alpha, 3.0.0-alpha1
    • None
    • None

    Description

      When many nodes (10) read from the same block simultaneously, we get asymmetric distribution of read load. This can result in slow block reads when one replica is serving most of the readers and the other replicas are idle. The busy DN bottlenecks on its network link.

      This is especially visible with large block sizes and high replica counts (I reproduced the problem with -Ddfs.block.size=4294967296 and replication 5), but the same behavior happens on a small scale with normal-sized blocks and replication=3.

      The root of the problem is in NetworkTopology#pseudoSortByDistance which explicitly does not try to spread traffic among replicas in a given rack – it only randomizes usage for off-rack replicas.

      Attachments

        1. hdfs4253-6.txt
          8 kB
          Andy Isaacson
        2. hdfs4253-5.txt
          8 kB
          Andy Isaacson
        3. hdfs4253-4.txt
          8 kB
          Andy Isaacson
        4. hdfs4253-3.txt
          9 kB
          Andy Isaacson
        5. hdfs4253-2.txt
          8 kB
          Andy Isaacson
        6. hdfs4253-1.txt
          8 kB
          Andy Isaacson
        7. hdfs4253.txt
          8 kB
          Andy Isaacson
        8. HDFS-4253.06.patch
          8 kB
          Allen Wittenauer

        Issue Links

          Activity

            People

              adi2 Andy Isaacson
              adi2 Andy Isaacson
              Votes:
              0 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: