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

Cache the resolved hosts to prevent calls to InetAddress.getByName and normalizeHost

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • common
    • None
    • SecurtityUtil, CachedResolver

    Description

      When running performance tests, we noticed that a lot of time is taken in resolving the host address.
      In our specific scenario, we saw the function org.apache.hadoop.security.SecurityUtil.getInetAddressByName taking a lot of time to resolve the hosts, and the same function is called a lot of times.
      I saw that org.apache.hadoop.yarn.server.resourcemanager.NodesListManager has a cached resolver already because of the same reason.
      So, the proposal is, to make this cache generic and use it to save some time in this functions that we already know, but have it available so the cache can be used anywhere else.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmArreola Jose Miguel Arreola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified