← 返回刚才阅读的位置

知识卡片

问题卡 · 4545.f.1.b

浅层探针要测真实资源路径

理解等级:中级

临时目录可写只能证明该路径对应资源在当时可写,不一定覆盖业务数据目录、挂载和权限。原稿把Linux/tmp概括为内存盘过于绝对,实际由部署挂载决定。健康检查应选与核心功能相符且开销有限的目标,避免测错对象后得到虚假的健康结论。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Resilience · 查看原书依据

      if you want to test for the ability to write to disk on Linux you’ll need to specify a different directory, or this becomes a very different test. Deep Health Checks Deep health checks directly inspect the ability of a service to interact with its adjacent systems. This provides much better understanding of instance health

    参考来源

    - 位置:《Cloud Native Go》第09章《Resilience》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch09.xhtml) - 结论依据:临时目录可写只能证明该路径对应资源在当时可写,不一定覆盖业务数据目录、挂载和权限。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。 - 原始内容:if you want to test for the ability to write to disk on Linux you’ll need to specify a different directory, or this becomes a very different test. Deep Health Checks Deep health checks directly inspect the ability of a service to interact with its adjacent systems. This provides much better understanding of instance health