Versions Compared

Key

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

...

ParameterDescription
profile(Required) Value: 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><resource_manager_host>:8192/api/cluster/flexup
<localhost>
	-d profile=<zero|small|medium|large>
	-d instances=<integer>
	-d constraints=<"string">
<resource_manager_host>:8192/api/cluster/flexdown
	-d profile=<zero|small|medium|large>
	-d instances=<integer>
	-d constraints=<"string">

 

Request Examples

Curl request example to flexup two instances with the profile set to small:

...