logo

Coordinator 是单点怎么办?如何用 leader election(Raft/Paxos)+ etcd/ZooKeeper 做高可用?共享状态放哪里?

How do you avoid the coordinator as a single point of failure using leader election (Raft/Paxos) with etcd/ZooKeeper, and where do you store shared state?

题目类型: 技术面试题

这是一道技术面试题,常见于澳洲IT公司面试中。

难度: medium

分类: System Design

标签: leader-election, raft, paxos, etcd, zookeeper, ha

参考答案摘要

答案 Coordinator 既负责分配/再均衡,又负责健康监控,天然容易成为单点。常见 HA 方案: 部署多个 coordinator,使用 leader election (Raft/Paxos)选出一个 active leader,其余 standby。 leader 挂了,其他节点检测到租约/心跳失效后快速重新选主并接管。 选主与租约管理可用 etcd 或 ZooKeeper (它们内部实...

本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。

← 返回面试题库

Coordinator 是单点怎么办?如何用 leader election(Raft/Paxos)+ etcd/ZooKeeper 做高可用?共享状态放哪里?

Mediumsystem-designdistributed-systemsjob-schedulerqueuekafkarabbitmqdynamodbcassandraleader-electionraftetcdzookeeperretryrate-limitingcheckpointing

想查看完整答案?

登录匠人学院学习中心,获取 STAR 格式回答和详细技术解析

前往学习中心查看答案