You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stabilization window defines a time period during which the autoscaler temporarily holds off on scaling the number of replicas up or down. This helps prevent rapid or unnecessary scaling in response to short-lived spikes or drops in traffic.
99
99
100
-
- ``fast`` (default): There is no stabilization window, so the autoscaler can increase the number of replicas immediately if necessary. It can increase the number of replicas by 100% or by 4 replicas, whichever is higher, every 15 seconds.
101
-
- ``stable``: The autoscaler can increase the number of replicas, but it will stabilize the number of replicas for 600 seconds (10 minutes) before deciding to scale up further. It can increase the number of replicas by 100% every 15 seconds.
- ``fast``: There is no stabilization window, so the autoscaler can reduce the number of replicas immediately if necessary. It can decrease the number of replicas by 100% or by 4 replicas, whichever is higher, every 15 seconds.
107
-
- ``stable`` (default): The autoscaler can reduce the number of replicas, but it will stabilize the number of replicas for 600 seconds (10 minutes) before deciding to scale down further. It can decrease the number of replicas by 100% every 15 seconds.
108
-
- ``disabled``: Scaling-down is turned off.
100
+
You can set the stabilization window to any value between 0 and 3600 seconds.
109
101
110
102
To set autoscaling policies, you need to configure the above fields in a separate YAML or JSON file. For example:
111
103
@@ -118,8 +110,8 @@ To set autoscaling policies, you need to configure the above fields in a separat
118
110
max_replicas: 2
119
111
min_replicas: 1
120
112
policy:
121
-
scale_down_behavior: "disabled | stable | fast"# Choose the behavior
122
-
scale_up_behavior: "disabled | stable | fast"# Choose the behavior
113
+
scale_up_stabilization_window: 180
114
+
scale_down_stabilization_window: 600
123
115
124
116
You can then deploy your project by referencing this file.
0 commit comments