Queueing Chain: M/M/c/K Birth-Death Diagram for ML Inference Autoscaling
A 2D birth-death chain and live PMF simulator for M/M/c/K inference queues: watch the number-in-system hop along a state ladder, compare the simulated occupancy histogram against the exact Erlang stationary distribution, and see a Kubernetes-style autoscaler shift the chain live.
Every production ML model behind an API sits inside an M/M/c/K queue whether its operators think about it that way or not: requests arrive at some rate λ, a pool of c replicas each serve them at rate μ, and a finite buffer of K waiting slots decides how many requests get dropped when the fleet falls behind. This 2D companion strips away the 3D warehouse-floor view and renders the queue as what it mathematically is — a continuous-time birth–death chain hopping between occupancy states — alongside a live histogram that checks the simulator's own behaviour against the exact closed-form Erlang stationary distribution. Tune the arrival rate, per-replica service rate and autoscaler target and watch the chain, the occupancy trace and the histogram all respond together, exactly the trade-off behind every HPA policy and SageMaker/Vertex AI autoscaling config in production.
A 2D birth-death chain and live PMF simulator for M/M/c/K inference queues: watch the number-in-system hop along a state ladder, compare the simulated occupancy histogram against the exact Erlang stationary distribution, and see a Kubernetes-style autoscaler shift the whole chain live as it adds and removes replicas.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install