返回主题:基础设施即代码与编排

此卡片不在当前主题的阅读序列中,可返回主题继续阅读。

知识卡片

普通读书笔记卡 · 1903.c.2

软件配置数据边界

理解等级:中级

服务器上的软件是需要在同类实例间保持一致的静态内容;配置由基础设施代码管理其具体内容;数据由系统或应用自行产生和更新。区分依据不是文件是否重要,而是谁控制内容。日志属于数据,备份工具可以保护它,但不应把它改回代码规定值。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 以代码构建服务器 · 查看原书依据

      The difference between configuration and data is whether automation tools automatically manage what’s inside the file. So even though a system log is essential for infrastructure, infrastructure code treats it as externally managed data. Similarly, if an application stores information like its accounts and preferences for its users in files on the server, the server

    参考来源

    - 位置:《Infrastructure As Code》第11章《以代码构建服务器》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch11.html) - 结论依据:原文说明服务器上的软件是需要在同类实例间保持一致的静态内容;配置由基础设施代码管理其具体内容;数据由系统或应用自行产生和更新;本卡据此解释其用途及适用边界。 - 原始内容:The difference between configuration and data is whether automation tools automatically manage what’s inside the file. So even though a system log is essential for infrastructure, infrastructure code treats it as externally managed data. Similarly, if an application stores information like its accounts and preferences for its users in files on the server, the server