The autoscaling control loop

The autoscaling control loop A workflow diagram generated by Archify. 01 / Observed demand 02 / Scheduled capacity 03 / Scaling policy 04 / Scale out EX / Scale in Observe Decide Change safely Demand signals · rate · queue · utilization · Observed demand › Observe Demand signals rate · queue · utilization Known traffic window · scheduled capacity · Scheduled capacity › Observe Known traffic window scheduled capacity Evaluate policy · window · target · hysteresis · Scaling policy › Observe Evaluate policy window · target · hysteresis Apply capacity bounds · minimum and maximum · Scaling policy › Decide Apply capacity bounds minimum and maximum Keep capacity · inside the stable band · Scaling policy › Decide Keep capacity inside the stable band Observe again · warmup · cooldown · Scaling policy › Change safely Observe again warmup · cooldown Increase desired count · provision instances · Scale out › Decide Increase desired count provision instances Warm and become ready · then receive traffic · Scale out › Change safely Warm and become ready then receive traffic Decrease desired count · select targets safely · Scale in › Decide Decrease desired count select targets safely Deregister and drain · then terminate · Scale in › Change safely Deregister and drain then terminate within band below target above target capacity removed no change scale-in candidate evaluation window new capacity policy result healthy capacity next window planned change Legend Policy or action Safe transition Observed signal Capacity