---
title: "Set reverse proxy the autoscaling parameters"
method: POST
path: "/resources/{instance}/autoscale"
tags: ["rpaas"]
---

# Set reverse proxy the autoscaling parameters

`POST /resources/{instance}/autoscale`

## Request body

- Autoscale
  - `minReplicas` integer, 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.
  - `maxReplicas` integer, required — The upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that `minReplicas`.
  - `cpu` integer — Target average of CPU utilization over running replicas (e.g. 95 means 95%)
  - `memory` integer — Target average of memory utilization over running replicas (e.g. 80 means 80%)
  - `rps` integer — Target average of HTTP requests per seconds over running replicas (e.g. 100 means 100 req/s)
  - `schedules` ScheduledWindow[] — Schedules are recurring or not time-windows where the instance can scale in/out regardless of traffic or resource utilization.
    - `minReplicas` integer, required — Min number of running pods while this window is active.
    - `start` string, required — An Cron expression defining the start of the scheduled window.
    - `end` string, required — An Cron expression defining the end of the scheduled window.
    - `timezone` string — Timezone is a zone name registered on IANA time zone database, default is UTC.
  - `behavior` Behavior
    - `scaleDown` ScaleDown
      - `stabilizationWindowSeconds` integer — is the number of seconds for which past recommendations should be considered while scaling up or scaling down.
      - `unitsPolicyValue` integer — set a policy with (value: unitsPolicyValue, type: Pods, periodSeconds: 60s)
      - `percentPolicyValue` integer — set a policy with (value: percentPolicyValue, type: Percent, periodSeconds: 60s)

## Response `201`

Succesfully created

## Other responses

- `default` — Something wrong happened

## Changes

> 17 revisions in range; 2 not diffed.

- **2026-07-17** `611d7951dc76` — 1 info
  - added the new optional request property `behavior`
- **2026-02-06** `602c199df662` — 1 breaking
  - the `minReplicas` request property's min was increased to `1.00`
- **2024-01-30** `e7e4a11d7199` — 1 info
  - added the new optional request property `schedules/items/timezone`
- **2023-08-01** `702550ccd283` — 1 warning, 1 info
  - the `minReplicas` request property's min was set to `0.00`
  - added the new optional request property `schedules`
- **2023-07-21** `1c0398a775bb` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/tsuru/apis/reverse-proxy-as-a-service/changes/resources/:instance/autoscale/post.md)

---

[API](https://skmtc.dev/tsuru/apis/reverse-proxy-as-a-service.md) · [All operations](https://skmtc.dev/tsuru/apis/reverse-proxy-as-a-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tsuru/reverse-proxy-as-a-service/revisions/611d7951dc76/schema)
