2. Raft 的三个角色? Leader:唯一对外提供写服务,负责日志复制和心跳。 Follower:被动接收 Leader 的日志和心跳。 Candidate:Follower 超时后发起选举,争取成为 Leader。 3. Raft 的核心机制? Leade