Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1484 Host affinity improvements for YARN
  3. SAMZA-1552

Host affinity improvements - Improve matching of hosts to allocated resources

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Kudos to abkshvn for observing this!

      We have observed host-affinity not being honored for some containers in very large jobs. When Yarn allocates more resources than what Samza requested on a specific host, the extra resources are added to a spare-pool called the "ANY_HOST Buffer". Later, when there is a resource request for the same host from Samza and Yarn does not return resources, we don't leverage the spare-pool of previously returned resources in that host.

      This problem is specially pronounced in clusters that are heavily loaded in cpu, and memory where allocations need to satisfy both cpu and memory requirements of available hosts (Often, hosts have cpu but not memory or vice-versa). If there are a lot of container failures on a particular host in the midst of allocation, it further aggravates this problem.

      The fix is as follows:
      Check if there are available containers in the buffer corresponding to our preferred host. If not, we should also scan the ANY-HOST buffer for matched containers.

      Attachments

        Issue Links

          Activity

            People

              jagadish1989@gmail.com Jagadish
              abkshvn Abhishek Shivanna
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: