THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
<resource_manager_host>:8192/api/cluster/flexup -d profile=<zero|small|medium|large> -d instances=<integer> -d constraints=<["JSON array of strings"]> <resource_manager_host>:8192/api/cluster/flexdown -d profile=<zero|small|medium|large> -d instances=<integer> -d constraints=<["JSON array of strings"]> |
Request Examples
Curl request example to flexup two instances with the profile set to small:
Code Block |
---|
curl -X PUT http://10.10.100.19:8192/api/cluster/flexup flexup -d instances=2 2 -d profile=small |
Curl request example to flexdown one instance with the profile set to small:
Code Block |
---|
curl -X PUT http://10.10.100.19:8192/api/cluster/flexdown flexdown -d instances=1 1 -d profile=small |
Curl request example to launch two (2) Node Managers with profile set to large only on specific hosts, host-120 through host-129:
Code Block |
---|
curl -X PUT http://10.10.100.19:8192/api/cluster/flexdown flexdown -d instances=2 2 -d profile=medium large -d constraints=["hostname LIKE host-12[0-9].example.com"] |
Request header to flexup:
...