Try
↑ ↓ move↵ openesc close
In this lesson · topic 3 of 7
  1. 1. A full server gets worse, not just slower
  2. 2. Four queues and four signals
  3. 3. Overload one server four ways
  4. 4. A queue bound is only as good as its timeout
  5. 5. Deciding who gets shed first
  6. 6. Let the client throttle itself
  7. 7. Reading an overloaded dashboard

Topic 3

Overload one server four ways

7 min read

Four policies, one stream of requests

The lab starts at 1.5 times capacity with all four policies. They face the same arrivals. Each panel shows a queue bar, goodput as a share of capacity, and the queue delay of the requests being served. The first chart tracks goodput over time. The third plots goodput against offered load, with the collapse visible as a line that falls instead of flattening.

Predict before you press play

Which policy will serve its requests with the lowest queue delay at 1.5 times capacity?

offered = 6.0 per tcapacity = 4 per tload 1.50x · client timeout 10 t · t = one mean service time

Unbounded FIFO

31 waiting

goodput vs capacity
71%
queue delay
2.8t
timeout
10t

answered late 0 · rejected 0 · dropped 0 · expired 0

Bounded queue, reject

18 waiting

goodput vs capacity
69%
queue delay
3.0t
timeout
10t

answered late 0 · rejected 15 · dropped 0 · expired 0

Deadline-aware drop

35 waiting

goodput vs capacity
66%
queue delay
3.0t
timeout
10t

answered late 0 · rejected 0 · dropped 0 · expired 0

Adaptive LIFO

20 waiting

goodput vs capacity
73%
queue delay
0.2t
timeout
10t

answered late 0 · rejected 0 · dropped 0 · expired 10

Goodput over time
Goodput over time. Text version available below the chart.0%30%60%90%120%t=3t=9t=15simulated timeshare of capacity
Queue delay of requests that were served
Queue delay of requests that were served. Text version available below the chart.0.01.32.53.85.0t=3t=9t=15simulated timedelay (t)
Goodput against offered load, after 200 t (fixed seed 7)
Goodput against offered load, after 200 t (fixed seed 7). Text version available below the chart.0%30%60%90%120%0.5x1.5x3xcapacityoffered load (x capacity)goodput share

Full-page version with guided experiments: Load shedding lab.

Poke at it

  1. Watch the unbounded policy for a minute. It starts like the others. Find the moment its goodput turns down and compare it with its queue delay.
  2. Drop the offered load to 0.7. Which policies still differ?
  3. Raise the load to 3. Does any policy other than the unbounded one lose goodput?
  4. Pick the bounded queue alone and raise its size from 20 to 200. Then lower the client timeout instead.
  5. Look at the numbers under each panel: answered late, rejected, dropped, expired. Where does each policy put the requests it cannot serve?
  6. Change the seed. The exact figures move, and the ordering should not.

The full-page lab also has five guided experiments you can apply with one click.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms