关于「乘法律:百分之一的慢调用如何变成六成三的慢页面」,《扇出尾延迟与对冲请求》给出的定量结论是什么?
结论:第一章复算乘法律:万分之一的慢请求在两千个调用下仍给出 0.181 的慢页面,页面第九十九百分位要求每个调用只允许 0.000100 的慢份额。
数据口径:书中服务时间、慢请求比例与成本均为示意参数;全部计算由书中程序生成;本书属于非个人化经营建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(22 段程序)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.000100, 99
| Per-call percentile needed for a page percentile | ||||
| N | page p95: call q | nines | page p99: call q | nines |
| 1 | 0.950000 | 1.30 | 0.990000 | 2.00 |
| 10 | 0.994884 | 2.29 | 0.998995 | 3.00 |
| 30 | 0.998292 | 2.77 | 0.999665 | 3.48 |
| 100 | 0.999487 | 3.29 | 0.999900 | 4.00 |
| 300 | 0.999829 | 3.77 | 0.999966 | 4.47 |
| 1000 | 0.999949 | 4.29 | 0.999990 | 5.00 |
| Page p99 at N=100 needs each call at pct 99.990 | ||||
| Allowed slow share per call: 0.000100 | ||||
| Rule of thumb (1 - P)/N: | 0.000100 |
查看完整验算程序
# Chapter 1. p12: which per-call percentile a page percentile demands.
# Model: for N independent parallel calls, the page meets its deadline
# with probability q^N when each call does so with probability q. To
# give the page a target probability P, each call needs q = P^(1/N).
# The "nines" column is -log10(1 - q). Targets are illustrative.
import math
def per_call_q(page_target, n):
return math.exp(math.log(page_target) / n)
if __name__ == "__main__":
print("Per-call percentile needed for a page percentile")
print(" N page p95: call q nines page p99: call q nines")
for n in (1, 10, 30, 100, 300, 1000):
cells = []
for tgt in (0.95, 0.99):
q = per_call_q(tgt, n)
nines = -math.log10(1.0 - q)
cells.append("{:12.6f} {:5.2f}".format(q, nines))
print(" {:5d} {} {}".format(n, cells[0], cells[1]))
q = per_call_q(0.99, 100)
print("Page p99 at N=100 needs each call at pct {:.3f}".format(
100 * q))
print("Allowed slow share per call: {:.6f}".format(1.0 - q))
print("Rule of thumb (1 - P)/N: {:.6f}".format(0.01 / 100))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《扇出尾延迟乘法律与对冲请求、单页多调用时百分位延迟的放大母典》第 1 章「乘法律:百分之一的慢调用如何变成六成三的慢页面」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-326 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026326,
author = {Fan, Yafu},
title = {The Multiplicative Law of Fan-Out Tail Latency and Hedged Requests: How Percentile Latency Amplifies When One Page Makes Many Calls},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}