...
Parameter | Description |
---|---|
| Namespace ID |
| Name of the application |
| Name of the service |
| Number of instances to be used |
Note: You can scale system services using the Monitor Microservices Scaling System Services.
Examples
Retrieve the number of instances of the service CatalogLookup in the application PurchaseHistory in the namespace default:
Code Block GET /v3/namespaces/default/apps/PurchaseHistory/services/CatalogLookup/instances
Set the number of handler instances of the service RetrieveCounts of the application WordCount:
Code Block PUT /v3/namespaces/default/apps/WordCount/services/RetrieveCounts/instances
with the arguments as a JSON string in the body:
Code Block { "instances" : 2 }
Using
curl
and the CDAP Sandbox:
...