What does Pocket Command of Container Fleets conclude, in numbers, about “Automatic Repair: Backoff, Circuit Breakers and the Availability Ledger”?

Answer: Chapter 5 uses backoff, jitter, circuit breakers and a Markov model to show that with human repair from the phone averaging forty-five minutes, at least 0.948 of failures must be repaired automatically to fit the budget.

Scope of the numbers: Its parameters are illustrative; all calculations are generated by its programs; the book offers non-personalised operating guidance, promises no availability figure, and was written without connecting to any machine. Marked boxes separate published evidence, runnable Python calculations (22 programs), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.948

budget for 0.999 over 30 days: 43.2 min
caseavaildown minP50P90P99in budget
none, at desk0.99654150.010.434.471.1no
none, phone0.98969450.031.6103.7212.2no
auto 0.8, phone0.99746110.01.933.6142.6no
auto 0.9, phone0.9985065.01.68.8112.8no
auto 0.97, phone0.9992333.51.55.148.9yes
auto 0.9, asleep0.99677140.01.610.9274.2no
auto-repair share needed, R = 45 min: 0.948
auto-repair share needed, R = 120 min: 0.981
Show the full program
# Chapter 5. p53: availability with self-repair and a human on a phone
# Three-state Markov model: Up -> Repairing (automatic restart, mean 2
# min) -> Up with probability s, else -> Human (mean repair R min) ->
# Up. Ten failures per 30 days (illustrative). Times are exponential.
# Steady-state availability A = 1 / (1 + lam * (T_repair + (1 - s) R)).
# Recovery-time quantiles come from 20,000 simulated failures per row.
import random

FAILS, MONTH_MIN = 10, 30 * 24 * 60
LAM = FAILS / MONTH_MIN
T_REP = 2.0
BUDGET = MONTH_MIN * (1.0 - 0.999)
rng = random.Random(41653)
ROWS = (("none, at desk", 0.0, 15.0), ("none, phone", 0.0, 45.0),
        ("auto 0.8, phone", 0.8, 45.0), ("auto 0.9, phone", 0.9, 45.0),
        ("auto 0.97, phone", 0.97, 45.0), ("auto 0.9, asleep", 0.9, 120.0))

print("budget for 0.999 over 30 days: {:.1f} min".format(BUDGET))
print("case              avail     down min  P50   P90    P99  in budget")
for name, s, r in ROWS:
    repair = T_REP if s > 0 else 0.0
    per_fail = repair + (1.0 - s) * r
    avail = 1.0 / (1.0 + LAM * per_fail)
    down = FAILS * per_fail
    xs = []
    for _ in range(20000):
        x = rng.expovariate(1.0 / T_REP) if s > 0 else 0.0
        if rng.random() >= s:
            x = x + rng.expovariate(1.0 / r)
        xs.append(x)
    xs.sort()
    q = [xs[int(p * len(xs))] for p in (0.5, 0.9, 0.99)]
    print("{:<16}  {:.5f}  {:>8.1f}  {:>4.1f}  {:>5.1f}  {:>5.1f}  {}".format(
        name, avail, down, q[0], q[1], q[2], "yes" if down <= BUDGET
        else "no"))
for r in (45.0, 120.0):
    need = 1.0 - (BUDGET / FAILS - T_REP) / r
    print("auto-repair share needed, R = {:.0f} min: {:.3f}".format(r, need))

Single source and citation

Fan, Y. (2026). Pocket Command of Multi-Container Fleets: Mobile Remote Control, Exception-Only Push Filtering and Away-From-Keyboard Continuity (Version 1.0.0), Chapter 5: Automatic Repair: Backoff, Circuit Breakers and the Availability Ledger. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-416 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026416,
  author    = {Fan, Yafu},
  title     = {Pocket Command of Multi-Container Fleets: Mobile Remote Control, Exception-Only Push Filtering and Away-From-Keyboard Continuity},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book