In this lesson · topic 3 of 7
Topic 3
Break a dependency and compare six retry policies
7 min read
One incident, six policies
The lab starts in compare mode. The same new requests go to a copy of the dependency for each policy. After 40 ticks the dependency drops to 40 percent of its capacity for 40 ticks, then recovers. Three charts show what reaches the dependency, how many attempts succeed, and how many attempts each new request costs. The table under them gives the totals. Use the buttons above the charts to degrade the dependency at a moment of your choosing.
Predict before you press play
Push the incident around
- Press Pause during the incident and read the queue depth for each policy. Then let it run and watch which queues drain.
- Switch to the circuit breaker alone. Watch the state machine and the strip below it. How long does it stay open?
- Lower the capacity during the incident to 0, a full outage. How does the breaker behave when it probes and the dependency is still down?
- Set Clients waking at once to 80 and the new requests to 0.3. Compare exponential backoff with full jitter in the peak retry load column.
- Cut the attempts per request to 2. Is that enough to avoid the storm?
- Press Degrade the dependency now at a time you choose, then Recover it now a few ticks later. Which policies notice?
The full-page lab also has five guided experiments you can apply with one click.