← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.5.p.1.a.1

查询健康需明确故障含义

理解等级:高级

端口可连接不代表数据库能执行代表性查询。旁置适配器可以执行诊断并暴露HTTP健康结果,避免修改数据库镜像。查询失败究竟应摘流还是重启,要按故障恢复语义决定;书中概括的“失败就重启”不能覆盖依赖短暂不可用等情况,过重探针也会放大负载。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 5. Adapters · 查看原书依据

      what if we want to add richer health checks that actually run queries against the database? Container orchestration systems like Kubernetes enable us to use shell scripts as health checks as well. Given this capability, we can write a rich shell script that runs a number of different

    参考来源

    - 位置:《Designing Distributed Systems, 2nd Edition》第05章《Chapter 5. Adapters》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch05.html) - 结论依据:原文从进程和端口探测推进到代表性查询;沿用第2章存活/就绪区分约束重启动作。 - 原始内容:what if we want to add richer health checks that actually run queries against the database? Container orchestration systems like Kubernetes enable us to use shell scripts as health checks as well. Given this capability, we can write a rich shell script that runs a number of different