Skip to content

Scale your application

Last updated on

SCA offers two scaling modes. You can switch between them at any time. During public preview, an application runs at most 10 instances.

  1. Open the application and edit Scaling.

  2. Select Manual.

    Screenshot name application input field

  3. Set the number of instances.

With autoscaling, SCA adjusts the number of instances up or down based on the conditions you define. This page covers scaling on HTTP traffic. To scale on other events, see Scale on queues, databases, and schedules.

  1. Open the application and edit Scaling.

  2. Select Autoscaling.

    Screenshot name application input field

  3. Set the minimum and maximum number of instances.

  4. Click on Add rule

  5. Choose what the rule measures:

    • Concurrent requests: how many requests one instance handles at the same time. Suits most web applications and APIs.
    • Requests per second: how many requests one instance receives each second. Suits short, uniform requests. Screenshot name application input field
  6. Set the target value per instance. When traffic goes above the target, instances are added, up to the maximum.

  7. Save.

For example, with Concurrent requests set to 50 and 200 requests in progress, the application runs 4 instances.

Set the minimum to 0 and the application scales down to zero instances when it receives no traffic. Its status changes to Idle. The next request starts an instance and is answered once the instance is ready, so that first response takes longer than usual.

Screenshot name application input field

While an application is idle, no instances run and no compute is charged.

To scale on something other than HTTP traffic, such as a queue or a schedule, see Scale on queues, databases, and schedules.