You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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
ParameterDescription
instances(Required) Number of 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
	instance=<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"
}
  • No labels