Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18619

Optimize Service Checks to it picks a random host and prefers hosts with 0 active commands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • ambari-server
    • None

    Description

      STR:

      • Deploy a 3-node cluster with Ambari 2.4 and HDP 2.5 with clients on every host.
      • Run multiple service checks in parallel, but notice that they typically run on the same 1 or 2 hosts.

      Currently, Ambari relies on getting the list of candidate hosts from the DB and excludes all hosts that are in maintenance mode. From that list, it picks the first host that is healthy (i.e., heartbeating). This means that the logic does not pick a random host.

      Instead, Ambari should always pick a random host and prefer to schedule on hosts that have 0 in-progress commands.

      Attachments

        1. AMBARI-18619.trunk.patch
          26 kB
          Alejandro Fernandez
        2. AMBARI-18619.branch-2.5.patch
          26 kB
          Alejandro Fernandez

        Issue Links

          Activity

            People

              afernandez Alejandro Fernandez
              afernandez Alejandro Fernandez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: