← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.5.q.7

先判断是否需要选主

理解等级:高级

单实例天然只有一个执行者,配合编排重启可换取较低设计成本,但升级和故障期间会完全停止服务。若业务能容忍该停顿,可以保留单实例;若需要快速接管,则要运行候选副本并维护明确所有权。应依据恢复目标决定复杂度,不能由“分布式系统”直接推出必须选主。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 10. Ownership Election · 查看原书依据

      One of the key components of designing a distributed system is deciding when the “distributed” part is actually unnecessarily complex. But there are certainly situations where high availability (four+ nines) is a critical component of the application, and in such systems, you need to run multiple replicas of

    参考来源

    - 位置:《Designing Distributed Systems, 2nd Edition》第10章《Chapter 10. Ownership Election》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch10.html) - 结论依据:原文用singleton可用性、升级停顿及交互影响分析是否需要选举。 - 原始内容:One of the key components of designing a distributed system is deciding when the “distributed” part is actually unnecessarily complex. But there are certainly situations where high availability (four+ nines) is a critical component of the application, and in such systems, you need to run multiple replicas of