官术网_书友最值得收藏!

Resource isolation

When an application launches, it consumes CPU time, occupies memory space, links to its dependent libraries, writes to the disk, transmits packets, and may access other devices as well. Everything it uses up is a kind of resource, which is shared by all the programs on the same host. To increase the efficiency of resource utilization, we may try to put as many applications as possible on a single machine. However, the complexity involved in making every application work in a box effectively increases exponentially, even if we just want to run two applications, let alone work with tons of applications and machines. Because of this, the idea to separate the resources of a physical computing unit into isolated pieces soon became a paradigm in the industry.

You may have heard of terms such as Virtual Machines (VMs), BSD jails, Solaris containers, Linux containers, Docker, and others. All of these promise us similar isolation concepts but use fundamentally distinct mechanisms, so the actual level of isolation differs. For example, the implementation of a VM involves full virtualization of the hardware layer with a hypervisor. If you want to run an application on a VM, you have to start from a full operating system. In other words, the resources are isolated between guest operating systems running on the same hypervisor. In contrast, Linux and Docker containers are built on top of Linux primitives, which means they can only run in an operating system with those capabilities. BSD jails and Solaris containers work in a similar fashion, but on other operating systems. The following diagram illustrates the isolation relationship of the Linux container and VMs. The container isolates an application on the operating system layer, while VM-based separation is achieved by the underlying hypervisor or host operating system:

主站蜘蛛池模板: 陇西县| 荔波县| 陵水| 涞源县| 正宁县| 板桥市| 黄浦区| 庆安县| 安吉县| 芜湖县| 甘洛县| 蒲城县| 新宾| 阿拉善左旗| 延川县| 申扎县| 贵阳市| 丹棱县| 晴隆县| 遵义县| 柞水县| 金沙县| 丹东市| 喀喇| 蕲春县| 潍坊市| 黄浦区| 同心县| 称多县| 遂溪县| 宁德市| 嘉定区| 仁寿县| 仁布县| 赤壁市| 长治县| 井研县| 尚义县| 潮安县| 黎城县| 东安县|