Versions Compared

Key

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

...

Parameter

Description

namespace-id

Namespace ID

app-id

Name of the application

service-id

Name of the service

quantity

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:

...