Versions Compared

Key

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

...

Parameters include:

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.

...

Code Block
curl -X PUT http://10.10.100.19:8192/api/cluster/flexup -d instances=2 -d profile=small

 

Curl example to flex down one instance with the profile set to small:

Code Block
curl -X PUT http://10.10.100.19:8192/api/cluster/flexdown -d instances=1 -d profile=small

 

Request header to flexdown requestflexup:

Code Block
PUT /api/cluster/flexdownflexup HTTP/1.1
Host: 10.10.100.19:8192
Connection: keep-alive
Content-Length: 1736
Origin: http://10.10.100.19:8192
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
Content-Type: application/json
Accept: */*
Referer: http://10.10.100.19:8192/
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8

 

Request header to flexupflexdown:

Code Block
PUT /api/cluster/flexupflexdown HTTP/1.1
Host: 10.10.100.19:8192
Connection: keep-alive
Content-Length: 3617
Origin: http://10.10.100.19:8192
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
Content-Type: application/json
Accept: */*
Referer: http://10.10.100.19:8192/
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8

...