Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

Reliability patternsMixed 24 series

Four numbers worth writing down

Four numbers turn reliability from an opinion into a target you can review. They are targets, not defaults, and each should be written down with its date and measurement.

Quick reference

  1. Timeout: p99 of the dependency plus one round trip.
  2. Retry budget: retries as a share of successes.
  3. Queue depth: affordable wait times arrival rate.
  4. Shed rate: refusals per layer, watched like an SLO.

Explained

The timeout is the first. Start from the dependency's measured p99, add one round trip, and check that the result still fits inside the caller's deadline. A timeout copied from a framework default is a guess with a unit.

The retry budget is the second. Express it as a share of successful traffic, not as a number of attempts per call, and cap it per dependency. When it is spent, the caller fails fast.

The queue depth is the third. Take the wait you can afford and multiply by the arrival rate. That is the number of items you are willing to hold, and the point at which you reject.

The shed rate is the fourth. Count what you refuse, by layer, and treat it as a signal rather than a failure. A shed rate of zero under overload usually means the database is doing the shedding.

The honest caveat: these numbers interact. A shorter timeout raises the retry rate, which raises queue depth, which raises the shed rate. Change one and re-measure the other three.

Your turn: Which of your four numbers is currently a guess?

More notes: Reliability patterns

Open in the notes app: search, filters, copy This note on GitHub