What does Single-Host Hot Migration and the Ten-Second Contract conclude, in numbers, about “Many Containers on One Host behind a Shared Tunnel: Common-Cause Failure, Reconnect Backoff and Memory Headroom for Dual Running”?
Answer: Chapter 4 shows that two colours on one host are capped by common-cause failure, saving only 262.1 minutes at a common-cause share of 0.5, and that a single tunnel connector with a short fixed retry recovers within ten seconds in a share of 0.9504, against 0.8518 for backoff with full jitter.
Scope of the numbers: Examples use fictional names, parameters are illustrative, and all calculations come from the book's programs, which connect to no server. 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. printed values that match the answer: 0.5, 262.1
| series ceiling host*tunnel*db: A = 0.998001, 1050.5 min a year | |||
| one app colour: | A = 0.997003, 1575.1 min a year | ||
| beta | A service | down min/yr | gain min/yr |
| 0.0 | 0.998000 | 1051.1 | 524.0 |
| 0.1 | 0.997901 | 1103.4 | 471.7 |
| 0.3 | 0.997701 | 1208.2 | 366.9 |
| 0.5 | 0.997502 | 1312.9 | 262.1 |
| 1.0 | 0.997003 | 1575.1 | 0.0 |
| host share of the series downtime: 0.500 |
Show the full program
# Chapter 4. p41: what two app colours on one host can and cannot buy.
# Model: the service is up when the host, the shared tunnel, the db
# container and at least one app colour (app-blue or app-green) are up.
# Series parts multiply. The two app colours fail together with a
# beta-factor: a share beta of each colour's unavailability is common
# cause (same image, same config, same host kernel) and hits both;
# the rest is independent. Then the app pair is unavailable with
# beta u + ((1 - beta) u)^2, u = 1 - A_app.
# Availabilities are illustrative.
YEAR_MIN = 365.0 * 1440.0
A_HOST = 0.999
A_TUNNEL = 0.9995
A_DB = 0.9995
A_APP = 0.999
BETAS = (0.0, 0.1, 0.3, 0.5, 1.0)
def pair(beta, a=A_APP):
u = 1.0 - a
return 1.0 - (beta * u + ((1.0 - beta) * u) ** 2)
series = A_HOST * A_TUNNEL * A_DB
one = series * A_APP
print("series ceiling host*tunnel*db: A = %.6f, %.1f min a year" % (
series, (1.0 - series) * YEAR_MIN))
print("one app colour: A = %.6f, %.1f min a year" % (
one, (1.0 - one) * YEAR_MIN))
print("%6s %12s %14s %12s" % ("beta", "A service", "down min/yr",
"gain min/yr"))
for b in BETAS:
a = series * pair(b)
print("%6.1f %12.6f %14.1f %12.1f" % (
b, a, (1.0 - a) * YEAR_MIN, (a - one) * YEAR_MIN))
share = (1.0 - A_HOST) / (1.0 - series)
print("host share of the series downtime: %.3f" % share)Single source and citation
Fan, Y. (2026). Zero-Downtime Hot Migration and Rollback on Multi-Container Single Hosts: Lossless Schema Evolution behind a Shared Tunnel and a Ten-Second Stop-the-Bleeding Contract (Version 1.0.0), Chapter 4: Many Containers on One Host behind a Shared Tunnel: Common-Cause Failure, Reconnect Backoff and Memory Headroom for Dual Running. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-269 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026269,
author = {Fan, Yafu},
title = {Zero-Downtime Hot Migration and Rollback on Multi-Container Single Hosts: Lossless Schema Evolution behind a Shared Tunnel and a Ten-Second Stop-the-Bleeding Contract},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Blue-Green Is Not Zero Downtime: the Interruption Window Set by Health Checks, Failure Thresholds and Connection Drain
- Chapter 2 · Expand-Contract Migration: the Rollbackability Graph and Pushing Irreversible Steps to the End
- Chapter 3 · The Availability Markov Chain: How Repair Time Eats the Yearly Budget
- Chapter 5 · Lossless Evolution of a Production Database: Backfill Pace, Dual-Write Verification and the Write-Freeze Window
- Chapter 6 · The Ten-Second Stop-the-Bleeding Contract: Convolving the Time Budget, False and Missed Alarms, and the Rot of Rollback Paths
- Chapter 7 · The Classical Sources Examined: "When a Course Runs Out, Change" and the Ship of Theseus
- Chapter 8 · The Empirical Loop: a Local Drill Checklist, the Hot-Migration Interruption Window Calculator and a Pre-Registered Test