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

  • DevOps with Kubernetes
  • Hideto Saito Hui Chuan Chloe Lee Cheng Yang Wu
  • 308字
  • 2021-07-02 13:41:46

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:

主站蜘蛛池模板: 合山市| 普安县| 广河县| 诸城市| 壤塘县| 淮北市| 长海县| 靖安县| 马公市| 东乡族自治县| 类乌齐县| 黄石市| 淅川县| 镇坪县| 烟台市| 娄底市| 河北区| 通海县| 东阿县| 青浦区| 友谊县| 南丹县| 湖口县| 自贡市| 如东县| 宁强县| 洪江市| 克拉玛依市| 荆州市| 宜章县| 宜川县| 定襄县| 孝义市| 高邑县| 舞阳县| 麻城市| 黑河市| 板桥市| 千阳县| 固安县| 江永县|