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 | ||||||
| case | avail | down min | P50 | P90 | P99 | in budget |
| none, at desk | 0.99654 | 150.0 | 10.4 | 34.4 | 71.1 | no |
| none, phone | 0.98969 | 450.0 | 31.6 | 103.7 | 212.2 | no |
| auto 0.8, phone | 0.99746 | 110.0 | 1.9 | 33.6 | 142.6 | no |
| auto 0.9, phone | 0.99850 | 65.0 | 1.6 | 8.8 | 112.8 | no |
| auto 0.97, phone | 0.99923 | 33.5 | 1.5 | 5.1 | 48.9 | yes |
| auto 0.9, asleep | 0.99677 | 140.0 | 1.6 | 10.9 | 274.2 | no |
| 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
- Chapter 1 · Base Rates: the More Pushes, the Less Credible Each One
- Chapter 2 · Detectors: Cumulative Sums, Weighted Averages and the Error Budget
- Chapter 3 · Grouping and Interruption: One Event, One Push
- Chapter 4 · Heartbeats and Probes: Late Is Not Dead
- Chapter 6 · Lost Links, Thin Links and Permissions: What the Phone May and May Not Do
- Chapter 7 · The Tent, the Field and Requisite Variety: Eastern and Western Sources Examined
- Chapter 8 · Field Tools and Checker Specifications: the Away-From-Desk Ledger and a Pre-Registered Test