Versions Compared

Key

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

...

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.
constraintsValue: ??Array 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.

...

Code Block
{profile: "medium", instances: "1"}

 

Launches a Node Manager with the profile set to small on any host in the Mesos cluster:

...

Code Block
{
	"instances":4, 
	"profile": "large", 
	"constraints": ["hostname LIKE host-12[0-9].example.com"]
}

Launches two (2) Node Managers with profile set to zero only on hosts sharing a common Mesos slave attribute (http://mesos.apache.org/documentation/attributes-resources):

Code Block
{
	"instances":2, 
	"profile": "zero", 
	"constraints": ["hdfs LIKE true"]
}

 

Response Example

Code Block
202 ACCEPTED