Skip to main content

BLOGE 0.9.8-RC1 在线版 · 事实校验 2026-09-15 · English

附录 H —— Durable 与规模化运行参考

第 21、22 章保留机制与判断;本附录保存部署核对项和测量参数。

租约与恢复配置

记录 owner identity、claim timeout、scan interval、batch size、maximum recovery attempts 和逻辑/墙上时钟来源。timeout 越短不等于恢复越好:长暂停或存储抖动会增加误接管,必须配合 fencing epoch。

路由与迁移

新业务键由 ShardResolver 选择,既有键从 RoutingStore 读取。迁移顺序固定为:停止写入、复制完整状态、校验、原子更新 binding、恢复流量。不要用扩容后的新 hash 代替迁移。

远端派发参数

参数必须同时记录的事实
topic / queueworker 能力与版本
heartbeat误判窗口与重派策略
batch size全局 in-flight 上限
retryeffect 幂等与重复投递语义
result timeout取消、迟到结果和 DLQ 处理

Store migration 核对

迁移版本以所用 bloge-durable-mybatis 包内 Flyway 脚本为准,不把旧章的 V25 名称当永久契约。每个环境记录 schema history、表/索引存在性、应用 artifact checksum、迁移时间和回退决策。

Benchmark 记录模板

commit / artifact:
JDK / CPU quota / heap:
topology / operator behavior:
arrival model / concurrency:
warmup / measurement / forks:
external stubs and store:
raw result path:
single changed axis:
stop rule:
claim and non-claim:

benchmarks/run.shcompare.py 提供运行和比较入口;阈值必须来自当前脚本或团队基线,不能从书中复制后假定仍适用。

精确入口