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

Stack advisor's recommendation should support both homogeneous and heterogenous nodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • trunk
    • None
    • ambari-server, blueprints
    • None

    Description

      Stack advisor provides service component placement recommendations for any given set oif hosts and services with the assumption that all the hosts are homogeneous (same configuration - cpu/memory). This limits the possibility of assigning hosts that are capable of being master to associate master service components.

      By passing the host-group information with some hints specifying which distinction between master and slave nodes, the stack advisor component could place the appropriate master service components with the associated master hosts.

      Stack advisor could parse the host group name ("masters" vs "slaves" vs "clients") and identifies if the hosts could be treated as master or slave. In the absence of the "hint", all the hosts will be assumed to be homogeneous (default/current implementation)

      "name":"masters-host-group1"
      "name":"slaves-host-group1"
      "name":"clients-host-group1"
      /api/v1/stacks/HDP/versions/2.3/recommendations
      {
      "hosts":[
      "host1",
      "host2"
      ],
      "services":[
      "HDFS",
      "YARN",
      "MAPREDUCE2",
      "ZOOKEEPER"
      ],
      "recommendations":{
      "blueprint":{
      "host_groups":[

      { "name":"masters-host-group1", "components":[ ] }

      ,

      { "name":"slaves-host-group1", "components":[ ] }

      ,

      { "name":"clients-host-group1", "components":[ ] }

      ]
      },
      "blueprint_cluster_binding":{
      "host_groups":[
      {
      "name":"masters-host-group1",
      "hosts":[

      { "fqdn":"host1" }

      ]
      },
      {
      "name":"slaves-host-group1",
      "hosts":[

      { "fqdn":"host2" }

      ]
      },
      {
      "name":"clients-host-group1",
      "hosts":[

      { "fqdn":"host3" }

      ]
      }
      ]
      }
      },
      "recommend":"host_groups"
      }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vijikarthi Vijay Srinivasaraghavan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: