Browse Prior Art Database

Method and Apparatus of Simulating Resource Virtualization to Containers

IP.com Disclosure Number: IPCOM000245514D
Publication Date: 2016-Mar-14
Document File: 4 page(s) / 62K

Publishing Venue

The IP.com Prior Art Database

Abstract

Container does not provide a virtualized kernel -- the kernel is shared between the host and all containers, so the container instances do not know their resource limits, the resource inventory commands in any container instance shows full specification of the container host instead of container only. This article presents a method and Apparatus to have the container instances know their resource limits through running the resource inventory commands inside the containers.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 53% of the total text.

Page 01 of 4

Method and Apparatus of Simulating Resource Virtualization to Containers

Business Problem

Container does not provide a virtualized kernel -- the kernel is shared between the host and all containers, so the container instances do not know their resource limits, the resource inventory commands in any container instance shows full specification of the container host instead of container only.

This resource blindness could confuse the resource-dependent applications in the container instances. Some of the applications will behave differently based on the resource, e.g., fork different numbers of processes based on the CPU cores; use different memory consumption strategy based on the memory size. The inappropriate behavior of the applications could cause big performance problems, or even logic errors.

Solution Outline

The basic idea of the solution is to have the container engine feed "right" resource inventory files into the /proc file system inside the containers.When any new container is created with resource limits, the container engine will create the resource inventory files like cpuinfo, meminfo for this container.While the container is booting up with resource limits, the docker engine will feed the resource inventory files into the /proc file system of the container. When the container resource limits are updated on-the-fly, the container engine will update the resource inventory files on the container host, and refeed the resource files to containers.

To fe...