Leader 选举 + 日志复制——理解分布式一致性的经典算法
1️⃣ 选举:Follower 超时变 Candidate,拉票成为 Leader 2️⃣ 复制:Leader 将日志条目同步到多数派 Follower 3️⃣ 提交:多数派确认后,条目对所有节点可见