Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Cluster REST API uses the PUT /api/cluster/flexup and flex downflexdown HTTP method and URI to expand and shrink the cluster size size.

HTTP Method and URI

Code Block
PUT /api/cluster/flexup      // Expands the size of the YARN cluster.

PUT /api/cluster/flexdown    // Shrinks the size of the YARN cluster.

...

ParameterDescription
profileValue: zero, small, medium, large. Default: zero. The instance size in the cluster is defined in the myriad-config-default.yml file.
instancesValue: one (1) to the number of nodes in the cluster. For example, if there are 100 nodes in your cluster, you are bound by 100. If you specify more than 100, the excess is place in a pending state.
constraintsArray definition for a single constraint using the LIKE operator constraint format: <mesos_slave_attribute|hostname> LIKE <value_regex>. Hostnames are used to define cluster boundary and to start and stop Node Managers on a predefined set of nodes. See common Mesos slave attributes (http://mesos.apache.org/documentation/attributes-resources) for more information.

 

Syntax

Code Block
<localhost>:8192/api/cluster/flexup
<localhost>:8192/api/cluster/flexdown

...