v1

latestOpenAPI 3.0.3BSD-3-Clause License2026-07-17201927.6 KB
rpaas

Update the reverse proxy instance autoscaling parameters

put/resources/{instance}/autoscale

Request body

minReplicasinteger required

The lower limit for the number of replicas to which the autoscaler can scale down. It cannot be greater than maxReplicas. It can be zero when set along with rps and/or schedules targets.

maxReplicasinteger required

The upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.

cpuinteger

Target average of CPU utilization over running replicas (e.g. 95 means 95%)

memoryinteger

Target average of memory utilization over running replicas (e.g. 80 means 80%)

rpsinteger

Target average of HTTP requests per seconds over running replicas (e.g. 100 means 100 req/s)

Example request

{
  "minReplicas": 3,
  "maxReplicas": 100,
  "cpu": 95,
  "memory": 80,
  "rps": 100,
  "schedules": [
    {
      "minReplicas": 10,
      "start": "00 20 * * * 1-5",
      "end": "00 00 * * * 1-5",
      "timezone": "America/Sao_Paulo"
    }
  ],
  "behavior": {
    "scaleDown": {
      "stabilizationWindowSeconds": 300,
      "unitsPolicyValue": 3,
      "percentPolicyValue": 30
    }
  }
}

Response

Succesfully updated