Skip to content

11. 延伸阅读与总结 ​

一句话理解:分布式系统是 AI Infra 的底层语言;想要深入,必读《Designing Data-Intensive Applications》、Lamport 的时钟与 Paxos 论文、Raft 论文,以及 etcd/Ray/PyTorch Distributed 的官方文档。

11.1 必读书籍 ​

书籍作者看点
Designing Data-Intensive ApplicationsMartin Kleppmann复制、分区、事务、一致性与共识的系统化讲解
Distributed Systems(在线版)Maarten van Steen & Andrew Tanenbaum从基础概念到一致性协议
The Datacenter as a ComputerLuiz André Barroso 等数据中心 scale、故障域、能耗

11.2 经典论文 ​

论文作者看点
Time, Clocks, and the Ordering of Events in a Distributed SystemLeslie Lamport, 1978逻辑时钟、happens-before
Paxos Made SimpleLeslie Lamport, 2001Paxos 的最清晰入门
In Search of an Understandable Consensus Algorithm (Raft)Ongaro & Ousterhout, ATC'14现代工程共识算法首选
Viewstamped Replication RevisitedBarbara Liskov & James Cowling另一种复制状态机视角
Dynamo: Amazon's Highly Available Key-value StoreDeCandia et al., SOSP'07Leaderless + Quorum + Gossip
Bigtable: A Distributed Storage System for Structured DataChang et al., OSDI'06分片 + SSTable + 分布式协调
Spanner: Google's Globally-Distributed DatabaseCorbett et al., OSDI'12TrueTime + 外部一致性
The Google File SystemGhemawat et al., SOSP'03大规模分布式文件系统
MapReduce: Simplified Data Processing on Large ClustersDean & Ghemawat, OSDI'04分布式计算编程模型
ZooKeeper: Wait-free coordination for Internet-scale systemsHunt et al., ATC'10分布式协调服务
Large-scale cluster management at Google with BorgVerma et al., EuroSys'15超大规模调度与状态管理
Ray: A Distributed Framework for Emerging AI ApplicationsMoritz et al., OSDI'18AI 场景分布式运行时
Falcon: Replacing Fragmented Datasets with Distributed Shared MemoryKim et al., NSDI'24AI 训练中的分布式共享内存
There Is More Consensus in Egalitarian Parliaments (EPaxos)Moraru et al., SOSP'13无主导者共识的理论上限
EPaxos RevisitedNSW/Stanford, NSDI'21为什么 EPaxos 没进生产:尾延迟与写冲突
Exploiting Commutativity For Practical Fast Replication (CURP)Park & Ousterhout, FAST'191 RTT 复制的工程路径(Xline 采用)
Paxos vs Raft: Have We Reached Consensus on Distributed Consensus?Howard et al., PaPoC'20Raft 诞生十年后的客观复盘
Oobleck: Resilient Distributed Training of Large Models Using Pipeline TemplatesJia et al., SOSP'23LLM 训练局部回滚
Gemini: Fast Failure Recovery in Distributed Training with In-Memory CheckpointsGoogle, SOSP'24内存检查点,生产验证
MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUsByteDance, NSDI'24万卡生产训练的容错账单
The Llama 3 Herd of ModelsMeta, 2024466 次中断:真实容错成本
DiLoCo: Distributed Low-Communication Training of Language ModelsDeepMind, 2023WAN 训练的异步梯度范式
OpenDiLoCoPrime Intellect, 2024跨洲异构云训练 1.1B 模型的实测

11.3 官方文档与源码 ​

资源说明
etcd 官方文档Raft 实现与运维必读
etcd Raft 源码生产级 Raft 实现
Ray 官方文档ownership、GCS、fault tolerance
PyTorch DistributedDDP/FSDP/c10d/Elastic
Kubernetes 官方文档etcd、controller、scheduler 设计
NCCL 文档GPU 集合通信
MLflow Tracking Server分布式实验追踪
etcd 3.7 发布公告2026 年 Raft 与存储层的最新工程进展
Cloudflare Durable Objects 文档Actor + 单写者 SQLite 的 Serverless 架构样本
TigerBeetle / Verus形式化验证工程化的两个代表案例
Ultra Ethernet Consortium / UALink Consortium 官网AI 集群互联新标准:scale-out 以太网与 scale-up 开放互连

11.4 相邻主题交叉引用 ​

主题关系链接
Linux 系统与性能调优单机 OS 底座总览
计算机网络网络分区、RPC、消息传递总览
存储系统CAP、复制、一致性、对象存储总览
Kubernetesetcd/Raft、controller、watch总览
Rayownership、GCS、对象存储、lineage总览
Google 案例研究Borgmaster/Paxos、GFS/Bigtable总览
Meta 案例研究ZippyDB/Paxos、Twine 调度总览
LLM 推理缓存与 KV Cache 管理分布式 KV 池、PD 分离下的缓存一致性与传输引擎总览
AI 集群网络RDMA/RoCE/IB 与集合通信是分布式系统在 AI 集群的直接延伸总览

11.5 推荐学习路径 ​

  1. 第 1 周:精读本章 01-05 节,理解 CAP、一致性谱系、Raft、quorum、2PC、CRDT。
  2. 第 2 周:读 06 源码分析 + 07 Mini Demo;本地运行分布式系统模拟器。
  3. 第 3 周:读 08-09 生产实践与最佳实践;重点消化“万卡容错工程”与“形式化验证”两节,结合你所在的 K8s / 训练 / 推理平台做 CAP 决策树练习。
  4. 第 4 周:读 10 面试题;挑 3-5 题用白板或文档写出完整答案;按 11.2 选读 Raft、Gemini、EPaxos Revisited 至少三篇论文。

11.6 一句话总结 ​

分布式系统是 AI Infra 的“操作系统”:它把不可靠的网络、节点、时钟组织成可靠的计算、存储、协调能力。掌握它,才能真正理解 Kubernetes、Ray、FSDP、对象存储和超大规模训练平台为什么这样设计。

本章小结 ​

  • 经典书籍和论文是深入理解分布式系统的不二法门。
  • etcd Raft 源码、Ray 文档、PyTorch Distributed 文档是 AI Infra 工程师的实战参考。
  • 本主题与 Linux、网络、存储、Kubernetes、Ray、案例研究形成完整知识闭环。

Released under CC-BY-SA-4.0 License.