知识卡片

普通读书笔记卡 · 2313.e.5.f.10.b.1.d.3

容器共享内核的边界

理解等级:中级

容器共享宿主机内核,利用命名空间和cgroups等机制隔离、约束进程,相比每实例一个操作系统减少运行开销。共享内核意味着隔离模型与虚拟机不同,打包了依赖也不代表可以无条件跨任意内核或平台运行。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Architecture of Distributed Systems · 查看原书依据

      Unlike VMs, containers do not require a separate operating system for each instance. Instead, containers share the host operating system kernel and leverage kernel-level isolation mechanisms, such as cgroups and namespaces, to provide process-level isolation. This approach significantly reduces the overhead associated with VMs, enabling faster startup times and more efficient resource utilization.

    参考来源

    - 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第03章《Architecture of Distributed Systems》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch03.xhtml) - 结论依据:原文给出本卡对象的职责及相关使用情境,本卡保留相应边界,不将具体产品功能或概述推广为无条件保证。 - 原始内容:Unlike VMs, containers do not require a separate operating system for each instance. Instead, containers share the host operating system kernel and leverage kernel-level isolation mechanisms, such as cgroups and namespaces, to provide process-level isolation. This approach significantly reduces the overhead associated with VMs, enabling faster startup times and more efficient resource utilization.