Update Autoscaling

Update the maximum number of replicas the Listener platform can scale ingest micro-service to. The minimum number of replicas is automatically managed by Listener.

Definition

PATCH https://listener-app-services.teradata.com/v1/autoscale/ingest-services

Example Request

curl \
   -H  "Content-Type: application/json" \
   -H  "Authorization: Bearer TOKEN" \
   -X PATCH \
   -d '{
    "max_replicas": 5,
    }' \
  -i \
  https://listener-app-services.teradata.com/v1/autoscale/ingest-services

Example Response

Success response: 200 ok.  
Response body: {
  "name": "ingest-services",
  "max_replicas": 10,
  "min_replicas": 1,
  "current_replicas": 1,
  "last_scale_time": "2017-06-06T21:27:11Z",
  "replicas_available":15
}

Response Codes

CodeDescription
200Success.
400Either:
  • max_replicas should be greater than 0
  • max_replicas is required
  • max_replicas cannot be less than currently running replicas
  • resources are available only for “n” more replicas
401Unauthorized.
500Internal server error.

results matching ""

    No results matching ""