In this lesson · topic 7 of 7
Topic 7
Reading an overloaded dashboard
4 min read
Predict first
Predict first
Predict first
Take away
- Above capacity, a queue turns excess load into delay, and delay turns finished work into wasted work. Goodput can fall to nothing while throughput looks perfect.
- A bound on the queue, a deadline check, or serving newest first all keep goodput near capacity. They differ in who gets refused and what has to be tuned.
- Say no early, say it quickly, and say when to come back.
- Shed the lowest criticality class first, with two thresholds so it does not flap, and let clients throttle themselves from their own accept counts.
Sources
- Beyer, Jones, Petoff and Murphy, Site Reliability Engineering, chapter 21, Handling Overload, O’Reilly, 2016.
- Beyer, Jones, Petoff and Murphy, Site Reliability Engineering, chapter 22, Addressing Cascading Failures, O’Reilly, 2016, including its sections on queue management and load shedding.
- Nichols and Jacobson, Controlling Queue Delay, ACM Queue, 2012.
- Ben Maurer, Fail at Scale, ACM Queue, 2015, which describes adaptive LIFO and controlled delay.
- Mogul and Ramakrishnan, Eliminating Receive Livelock in an Interrupt-Driven Kernel, ACM Transactions on Computer Systems, 1997, an early case of a system that is busy and delivers nothing.
- RFC 6585, Additional HTTP Status Codes, and RFC 9110, HTTP Semantics, for 429, 503 and Retry-After.
- Kung and Morris, Credit-based flow control for ATM networks, IEEE Network, 1995.