关于「心跳与探活:迟到不等于倒下」,《手机指挥容器集群》给出的定量结论是什么?

结论:第四章说明 phi 累积检测器在长尾链路上远达不到名义误报率:阈值为 8 时名义每天 0.0001 次,实测 51.00 次,可靠判定要靠多观测点确认。

数据口径:书中参数为示意;全部计算由书中程序生成;本书是非个人化经营建议,不承诺任何可用性数字,只写书、不连接任何机器。 书中以标注框区分已发表的证据、可运行的 Python 计算(22 段程序)、原典与作者的假说。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.0001, 51.00

rulefalse suspicions/daynominal/daydetect after crash s
phi 1515.71864.000012.7
phi 2114.0086.400014.8
phi 369.868.640016.3
phi 558.000.086418.6
phi 851.000.000121.3
phi 8 +20s14.710.000141.3
fixed 30 s26.14-30.0
查看完整验算程序
# Chapter 4. p41: phi accrual failure detection on a jittery link
# Heartbeats every 10 s with N(0, 1 s) jitter; 1 in 100 intervals gets
# an extra exponential delay with mean 15 s (a mobile or tunnel hiccup).
# The detector fits a normal to the last 100 intervals and suspects the
# peer once phi = -log10(1 - F(t)) passes the threshold. Seven days of
# synthetic heartbeats, fixed seed. A fixed 30 s timeout is the control;
# the last row adds an acceptable pause of 20 s to the phi 8 limit.
# Window statistics are refreshed every 20 heartbeats.
import random
import statistics
from collections import deque

rng = random.Random(41641)
N = 7 * 8640
gaps = []
for _ in range(N):
    g = max(0.5, rng.gauss(10.0, 1.0))
    if rng.random() < 0.01:
        g += rng.expovariate(1.0 / 15.0)
    gaps.append(g)

print("rule        false suspicions/day  nominal/day  detect after crash s")
for phi, pause in ((1.0, 0), (2.0, 0), (3.0, 0), (5.0, 0), (8.0, 0),
                   (8.0, 20)):
    z = statistics.NormalDist().inv_cdf(1.0 - 10.0 ** -phi)
    win, fs, det, limit = deque(maxlen=100), 0, [], None
    for i, g in enumerate(gaps):
        if len(win) == 100:
            if limit is None or i % 20 == 0:
                mu, sd = statistics.fmean(win), statistics.pstdev(win)
                limit = mu + max(sd, 0.1) * z + pause
            det.append(limit)
            if g > limit:
                fs += 1
        win.append(g)
    nominal = 8640 * 10.0 ** -phi
    tag = "phi {:g}{}".format(phi, " +20s" if pause else "")
    print("{:<10}  {:>20.2f}  {:>11.4f}  {:>20.1f}".format(
        tag, fs / 7.0, nominal, statistics.fmean(det)))
late = 0
for g in gaps:
    if g > 30.0:
        late += 1
print("fixed 30 s  {:>20.2f}  {:>11}  {:>20.1f}".format(
    late / 7.0, "-", 30.0))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《移动终端单手遥控多容器集群、异常中断推送滤波与离席零停摆指挥母典》第 4 章「心跳与探活:迟到不等于倒下」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 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}
}

本书其他章节结论