Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14412

HostsFileReader#getHostDetails is very expensive on large clusters

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha4, 2.8.2
    • Component/s: util
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      After upgrading one of our large clusters to 2.8 we noticed many IPC server threads of the resourcemanager spending time in NodesListManager#isValidNode which in turn was calling HostsFileReader#getHostDetails. The latter is creating complete copies of the include and exclude sets for every node heartbeat, and these sets are not small due to the size of the cluster. These copies are causing multiple resizes of the underlying HashSets being filled and creating lots of garbage.

        Attachments

        1. HADOOP-14412-branch-2.002.patch
          18 kB
          Jason Lowe
        2. HADOOP-14412-branch-2.8.002.patch
          16 kB
          Jason Lowe
        3. HADOOP-14412-branch-2.002.patch
          18 kB
          Jason Lowe
        4. HADOOP-14412.002.patch
          18 kB
          Jason Lowe
        5. HADOOP-14412-branch-2.001.patch
          18 kB
          Jason Lowe
        6. HADOOP-14412.001.patch
          18 kB
          Jason Lowe

          Issue Links

            Activity

              People

              • Assignee:
                jlowe Jason Lowe
                Reporter:
                jlowe Jason Lowe
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: