Managing system resources in containers and virtual machines in a coexisting environment
AssigneeInternational Business Machines Corporation
InventorsYanyan Hu, Guang Cheng Li, Yubo Li, Chao Zhu
Life of this patent
Estimating the term…
Abstract
A resource management method, system, and computer program product for creating a dummy virtual machine (VM) in a Virtual Machine (VM) hypervisor and a dummy container in a container engine for a resource management purpose, adding hooks for each of the VM and the container, and calling the container engine to update a resource allocation in the dummy container when the hook of the VM is started and the VM hypervisor to update a resource allocation in the dummy VM when the hook of the container is started.
Claims19
A computer-implemented resource management method, the method comprising:
- creating a dummy virtual machine (VM) in a Virtual Machine (VM) hypervisor and a dummy container in a container engine for a resource management purpose;
- tagging the dummy virtual machine and the dummy container as a special entity;
- adding hooks for each of the dummy VM and the dummy container that are tagged as the special entity;
- and
- calling the container engine to update a resource allocation in the dummy container when the hook of the dummy VM is started and the VM hypervisor to update a resource allocation in the dummy VM when the hook of the container is started,
- wherein the dummy container and the dummy VM are running in coexistence as peers, and
- wherein the dummy VM and the dummy container claim the resource consumption without actually consuming the resource, then further comprising:
- managing the resource consumption correctly when the dummy VM and the dummy container are in coexistence on a same node with all changes being transparent to the VM hypervisor, container engine, cloud software, and the container orchestration engine.
A computer program product for resource management, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to perform:
- creating a dummy virtual machine (VM) in a Virtual Machine (VM) hypervisor and a dummy container in a container engine for a resource management purpose;
- tagging the dummy virtual machine and the dummy container as a special entity;
- adding hooks for each of the dummy VM and the dummy container that are tagged as the special entity;
- and
- calling the container engine to update a resource allocation in the dummy container when the hook of the dummy VM is started and the VM hypervisor to update a resource allocation in the dummy VM when the hook of the container is started,
- wherein the dummy container and the dummy VM are running in coexistence as peers, and
- wherein the dummy VM and the dummy container claim the resource consumption without actually consuming the resource, then further comprising:
- managing the resource consumption correctly when the dummy VM and the dummy container are in coexistence on a same node with all changes being transparent to the VM hypervisor container engine, cloud software, and the container orchestration engine.
A resource management system, said system comprising:
- a processor;
- and
- a memory, the memory storing instructions to cause the processor to perform:
- creating a dummy virtual machine (VM) in a Virtual Machine (VM) hypervisor and a dummy container in a container engine for a resource management purpose;
- tagging the dummy virtual machine and the dummy container as a special entity;
- adding hooks for each of the dummy VM and the dummy container that are tagged as the special entity;
- and
- calling the container engine to update a resource allocation in the dummy container when the hook of the dummy VM is started and the VM hypervisor to update a resource allocation in the dummy VM when the hook of the container is started,
- wherein the dummy container and the dummy VM are running in coexistence as peers, and
- wherein the dummy VM and the dummy container claim the resource consumption without actually consuming the resource, then further comprising:
- managing the resource consumption correctly when the dummy VM and the dummy container are in coexistence on a same node with all changes being transparent to the VM hypervisor, container engine, cloud, software, and the container orchestration engine.
Dependencies are inferred from the claim text.