Skip to content

Commit ced56ea

Browse files
committed
docs(srv): update
1 parent 1c8da0d commit ced56ea

File tree

1 file changed

+35
-5
lines changed

1 file changed

+35
-5
lines changed

pages/serverless-containers/reference-content/containers-autoscaling.mdx

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,27 @@ categories:
1818

1919
[Autoscaling](/serverless-containers/concepts/#autoscaling) offers several benefits, including improved responsiveness and cost efficiency. By automatically adjusting the number of instances of your resource based on current demand, you ensure that your applications can handle varying loads without manual intervention. This not only enhances user experience by maintaining performance levels but also helps in reducing costs by only using resources when necessary. Additionally, autoscaling helps in optimal resource utilization, minimizing the risk of performance degradation during peak times.
2020

21-
## Minimum and maximum scales
21+
Autoscaling can be based on exactly one of the following parameters:
2222

23-
### Minimum scale (min-scale)
23+
- Request concurrency
24+
- CPU percentage
25+
- RAM percentage
2426

25-
This parameter sets the lowest value your resource is allowed to scale down to:
27+
## Request concurrency
28+
29+
### Minimum and maximum scales
30+
31+
#### Minimum scale (min-scale)
32+
33+
This parameter sets the minimum number of instances your resource is allowed to scale down to:
2634

2735
- If you set a value of `0`, all instances of your resource will be terminated after 15 minutes of inactivity.
2836

2937
- If you set a value of `1` or more, the corresponding number of instances of your resource will remain available at all time.
3038

3139
Customizing the minimum scale for Serverless can help ensure that an instance remains pre-allocated and ready to handle requests, reducing delays associated with [cold starts](/serverless-containers/concepts/#cold-start). However, this setting also impacts the costs of your Serverless Container.
3240

33-
### Maximum scale (max-scale)
41+
#### Maximum scale (max-scale)
3442

3543
This parameter sets the maximum number of instances of your resource. You should adjust it based on your resource's traffic spikes, keeping in mind that you may wish to limit the max scale to manage costs effectively.
3644

@@ -51,4 +59,26 @@ The same autoscaler decides to remove instances when:
5159

5260
<Message type="note">
5361
Redeploying your resource results in the termination of existing instances and a return to the min scale, which you observe when redeploying.
54-
</Message>
62+
</Message>
63+
64+
## CPU and RAM percentage
65+
66+
### Minimum and maximum scales
67+
68+
#### Minimum scale (min-scale)
69+
70+
This parameter sets the minimum number of instances your resource is allowed to scale down to.
71+
72+
<Message type="note">
73+
For technical reasons, the minimum scale for CPU/RAM-based autoscaling is `1`.
74+
</Message>
75+
76+
#### Maximum scale (max-scale)
77+
78+
This parameter sets the maximum number of instances of your resource. You should adjust it based on your resource's CPU or RAM usage spikes, keeping in mind that you may wish to limit the max scale to manage costs effectively.
79+
80+
### Autoscaler behavior
81+
82+
The autoscaler decides to start new instances when the existing instances' CPU or RAM usage exceeds the threshold you defined for a certain amount of time.
83+
84+
The same autoscaler decides to remove existing instances when the CPU or RAM usage of certain instances is reduced, and the remaining instances' usage does not exceed the threshold.

0 commit comments

Comments
 (0)