Requests arrive randomly
The model treats arrivals as a Poisson process. Over a short interval Δt, the number of new requests A is distributed as:
A(Δt) ~ Poisson(λ Δt)
Each server handles one request at a time. Service durations are exponentially distributed with mean 1/μ, where μ is the service rate of one server.
Capacity is not instant
ρ = λ / (c μ)
Here c is the number of ready servers. If ρ is above one for long enough, average offered work exceeds nominal service capacity. A finite queue only delays the point at which new requests are rejected.
The controller has a delay
This illustrative controller checks the queue at cooldown intervals. If the queue exceeds the configured requests-per-server trigger, it asks for one more server. That server contributes no capacity until its startup timer reaches zero. The controller can therefore react correctly and still react too late.
Q(t + Δt) = max(0, Q(t) + A − D)
Q is the waiting queue, A is admitted arrivals and D is the number of requests dispatched to servers. Arrivals beyond the finite buffer are counted as dropped.
Textbook fixed-capacity comparison
The experiment uses the Erlang-C model for an M/M/c queue. Let a = λ/μ and ρ = λ/(cμ), with ρ below one:
P(wait) = [aᶜ / (c!(1−ρ))] ÷ [Σₖ₌₀ᶜ⁻¹ aᵏ/k! + aᶜ / (c!(1−ρ))]
Wq = P(wait) / (cμ − λ)
The experiment compares a separate Monte Carlo run against these textbook predictions. It is not the same as the changing-capacity autoscaler shown in the main scene.
What is simplified
- One shared first-in, first-out queue feeds identical servers.
- Requests are treated as equal-sized jobs; real workloads have different costs.
- Network latency, retries, caches, priorities, failures and multi-region routing are omitted.
- Startup delay and controller thresholds are illustrative settings, not measurements from a cloud provider.
- Service durations are rounded up to the fixed simulation time step.
All controls and live measurements are illustrative. Equations identified as textbook are standard queueing results. This is a teaching model, not a capacity-planning tool.