The Service REST API uses the PUT /api/cluster/flexupservice
and flexdownservice
HTTP method and URI to dedicated resources to Myriad services.
HTTP Method and URI
PUT /api/cluster/flexupservice PUT /api/cluster/flexdownservice
Parameter | Description |
---|---|
instances | (Required) Number of NodeManager instance to launch for the service. |
serviceName | (Required) Service name as configured in the Myriad configuration file, myriad-config-default.yml . |
Syntax
http://<IP address>:8192/api/cluster/flexdownservice instances=<number of instances) serviceName=<name of service> http://<IP address>:8192/api/cluster/flexupservice instances=<number of instances) serviceName=<name of service>
Request Examples
Curl request example:
curl -X PUT http://10.10.100.19.:8192/api/cluster/flexdownservices -d instances=1 -d serviceName=jobhistory
The following launches a Node Manager instance for the jobhistory task:
{ "instances":1, "serviceName": "jobhistory" }