← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4545.c.6

数据寿命要独立于容器

理解等级:中级

容器可能被销毁并重建,业务数据与运行配置不能依赖容器可写层永久存在。外部配置可避免每次变化都重建镜像,持久化存储则需要说明能承受容器、主机或更大故障中的哪一层。单纯放到主机目录只延长到该主机的寿命,卷抽象也不自动保证所有后端都能抗主机丢失。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Building a Cloud Native Service · 查看原书依据

      Containers are intended to be ephemeral, and any container should be designed and run with the understanding that it can (and will) be destroyed and recreated at any time, taking all of its data with it. To be clear, this is a feature, and is very intentional, but sometimes we want our data to outlive

    参考来源

    - 位置:《Cloud Native Go》第05章《Building a Cloud Native Service》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch05.xhtml) - 结论依据:容器可能被销毁并重建,业务数据与运行配置不能依赖容器可写层永久存在。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。 - 原始内容:Containers are intended to be ephemeral, and any container should be designed and run with the understanding that it can (and will) be destroyed and recreated at any time, taking all of its data with it. To be clear, this is a feature, and is very intentional, but sometimes we want our data to outlive