concept Hosting
Autoscaling warmup and transient overload
A launch decision, usable capacity and an empty queue can occur at three different times. Follow a traffic burst second by second to see what changes when new instances take longer to become ready.
What it means
An autoscaler can decide to add capacity before that capacity is ready to serve requests. If requests arrive faster than the ready instances can handle them, a queue can grow both while the autoscaler is detecting the burst and while the new instances are starting. Once the instances are ready, they still have to handle new arrivals as well as the requests already waiting.
Try it
Simulation: Start with a service that can handle 10 requests per second (req/s). Demand jumps to 18 req/s for four seconds, then falls to 6 req/s. With the default readiness delay of 2 seconds, the queue peaks at 24 requests and ends empty.
Autoscaling warmup and transient overload
Show capacity lag during scale-out when traffic jumps before new instances are ready
All modeled requests have drained; spare capacity may remain.
Scale-out milestones
- Launch1 s
- Scheduled ready3 s
- Peak backlog24 requests
- Final backlog0 requests
| Interval start (s) | Demandreq/s | Ready capacityreq/s | End queuerequests |
|---|---|---|---|
| 0 | 18 | 10 | 8 |
| 1 | 18 | 10 | 16 |
| 2 | 18 | 10 | 24 |
| 3 | 18 | 22 | 20 |
| 4 | 6 | 22 | 4 |
| 5 | 6 | 22 | 0 |
Rate columns share a req/s scale. Queue has its own request-count scale. Launch and readiness are separate events; a scheduled event can be outside the observation window.
Evaluated inputs
- Required scenario evidence
- provided
- Controller evidence
- stipulated
- Simulated intervals
- 6 s
- Burst length
- 4 s
- Burst demand
- 18 req/s
- Demand threshold
- 12 req/s
- Consecutive above-threshold intervals
- 2 s
- Initial service capacity
- 10 req/s
- Readiness delay
- 2 s
- Extra capacity
- 12 req/s
- Post-burst demand
- 6 req/s
One scale-out action, discrete demand observation at interval start, no scale-in, finite synthetic queue, readiness independent of provider metric warmup. This is not AWS target tracking or a measurement. Excess capacity after burst is a modeled overshoot relative to demand, not controller instability.
About this model
The controls set only a local, bounded scenario. The computed branch is not a verdict about a live system. Inputs listed as not evaluated did not participate in this branch after validation.
Reset restores the original inputs. It does not change the open or closed state of help or FAQ answers.
Change only Readiness delay from 2 to 4 seconds. Look at the launch time first: it stays at 1 second because the autoscaler sees the same burst. Now look at the ready time: it moves from 3 to 5 seconds. The extra capacity arrives after the burst, and 12 requests are still waiting at the end of the six-second example. Use Reset to return to the defaults. This is a local simulation, not a check of your service.
Reading the queue one second at a time
The default rule calls for one launch after two consecutive observations of demand strictly above 12 req/s. The model observes demand at the start of each one-second interval, starting at 0. The queue in each row is the number of requests left at the end of that interval.
| Interval start (s) | Arrivals (req/s) | Ready capacity (req/s) | Queue at end (requests) |
|---|---|---|---|
| 0 | 18 | 10 | 8 |
| 1 | 18 | 10 | 16 |
| 2 | 18 | 10 | 24 |
| 3 | 18 | 22 | 20 |
| 4 | 6 | 22 | 4 |
| 5 | 6 | 22 | 0 |
At 1 second, the second high observation triggers the launch. Nothing changes in the capacity column yet: another 18 requests arrive and only 10 can be served. At 3 seconds, the extra 12 req/s becomes usable. The service can now handle all 18 arrivals and take 4 requests off the backlog in that interval. Readiness marks the start of recovery here, not its end.
At 4 seconds, demand falls to 6 req/s. The difference between capacity and arrivals is now 16 req/s, but it isn't all idle capacity: 20 requests were waiting at the start of the interval. The service uses that difference to reduce the queue to 4. Only in the last interval does it run out of work to do.
The trigger uses a strict above-threshold test. Set the demand threshold to 18 req/s and keep the original burst at 18. No observation is above that threshold, so the launch is never triggered. The original capacity serves 40 of the 72 burst requests and then drains four queued requests per remaining interval; 24 are left at the end. This is a decision-boundary contrast, not a startup delay.
There is another way to get a different final queue without changing the service at all. With the defaults restored, shorten Simulated intervals from 6 to 3. That leaves only the first three rows: a launch has been triggered, but 24 requests are still waiting. The scheduled ready time of 3 seconds is the start of the first interval outside that window. Ending the observation earlier doesn't make startup slower; it changes which part of the recovery you see.
In practice
To interpret a traffic burst, put four observations on the same timeline: the arrival rate, the scaling decision, the first evidence that added capacity could serve traffic, and the queue depth. A growing queue before launch points you toward the metric and evaluation window that informed the decision. Growth between launch and readiness raises a different question: how much capacity was actually serving during startup? After readiness, compare the queue trend with the capacity left over after new arrivals.
Be precise about what “warmup” means in the evidence you have. For example, EC2 Auto Scaling's default instance warmup affects how instance metrics are used in scaling decisions. That setting is not a measurement of when your application first served a request. The simulation uses a stipulated readiness delay instead; it does not implement AWS target tracking or predict a provider's timings.
The example allows at most one scale-out and no scale-in. Capacity staying above demand after the burst is therefore not evidence of an unstable controller. The useful rule is to compare arrivals with ready capacity and carry the existing queue forward. If you have a launch timestamp but no readiness evidence, look for when the new capacity began serving traffic before drawing a conclusion about recovery.
Frequently asked questions
Editorial questions based on the listed sources and explicitly labeled local examples.
Does a launched instance immediately serve requests?
Not necessarily. Startup, health checks and application readiness can delay usable capacity; provider metric warmup is a separate policy concept.
Why can a short burst cause a queue?
A burst can arrive before extra capacity is ready. Some controllers use several observations, as illustrated by CloudWatch's configurable M-of-N alarms. In the closed model, a positive difference between arrivals and completed work adds to the queue until available capacity catches up.
Can capacity arrive after a burst ends?
Yes in this example. Once launch is triggered, the modeled added capacity arrives at the scheduled ready time even if demand has already fallen. It can drain an existing backlog or remain unused. No scale-in rule or actual provider timing is modeled.
Does this predict my autoscaler?
No. Supply the actual metric, evaluation window, scale policy and readiness evidence before reasoning about your deployment.
Sources & model boundaries
Primary references used for this explanation. The interactive example is an educational model, not a live check.
- EC2 Auto Scaling default instance warmup
instance warmup. Warmup excludes certain instance metrics; dynamic scale-out calculations and scale-in behavior account for warming instances. Actual readiness and scaling depend on policy.
Checked .
- CloudWatch alarm evaluation
Alarm evaluation settings. CloudWatch supports configurable M-of-N alarm evaluation. The lab's trigger and warm-up timings are stipulated, not a prediction of a real autoscaling policy.
Checked .