知识卡片
热温冷备用权衡状态成本
热备用与主动副本处理相同输入,状态最接近,接管通常更快但运行成本高;温备用只接收周期状态更新,恢复前需追平;冷备用平时不工作,切换时才初始化,最省资源但恢复更慢。无状态组件下热温区别会缩小。选择应由允许中断、状态新鲜度和成本决定,而不是备用数量越多越好。
相关:[[检查点支持回滚与接替]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 第04章 可用性
原书出处 · 1 处
- 可用性 · 查看原书依据
The tradeoff among the three alternatives is the time to recover from a failure versus the runtime cost incurred to keep a spare up-to-date. A hot spare carries the highest cost but leads to the fastest recovery time, for example.
参考来源
- 位置:《Software Architecture in Practice, 4th Edition》第4章《可用性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch04.html)
- 结论依据:原文的定义、机制或比较支持“热备用与主动副本处理相同输入,状态最接近,接管通常更快但运行成本高;温备用只接收周期状态更新,恢复前需追平;冷备用平时不工作,切换时才初始化,最省资源但恢复更慢”;正文保留其条件与取舍。
- 原始内容:The tradeoff among the three alternatives is the time to recover from a failure versus the runtime cost incurred to keep a spare up-to-date. A hot spare carries the highest cost but leads to the fastest recovery time, for example.