Efficient container packing in host nodes
AssigneeInternational Business Machines Corporation
InventorsGabriel Zvi BenHanokh, Orit Wasserman
Life of this patent
Estimating the term…
Abstract
Host node container packing is provided. A minimum number of host nodes in a container orchestration environment that satisfies software resource dependencies of each respective container is determined using a dependency graph based on a group of containers that each respective host node of the minimum number of host nodes can run using shared software resources. Each respective group of containers is scheduled to run on a corresponding host node of the minimum number of host nodes using the shared software resources needed by that particular group of containers.
Claims20
A computer-implemented method for host node container packing, the computer-implemented method comprising:
- generating, by a computer, a dependency graph representing software resource dependencies between particular containers currently running in a container orchestration environment based on an analysis of container images corresponding to respective containers currently running in the container orchestration environment;
- determining, by the computer, using the dependency graph, a minimum number of host nodes in the container orchestration environment that satisfies software resource dependencies of each respective container based on a group of containers that each respective host node of the minimum number of host nodes can run using shared software resources;
- and
- scheduling, by the computer, each respective group of containers to run on a corresponding host node of the minimum number of host nodes using the shared software resources needed by that particular group of containers.
A computer system for host node container packing, the computer system comprising:
- a communication fabric;
- a set of computer-readable storage media connected to the communication fabric, wherein the set of computer-readable storage media collectively stores program instructions;
- and
- a set of processors connected to the communication fabric, wherein the set of processors executes the program instructions to:
- generate a dependency graph representing software resource dependencies between particular containers currently running in a container orchestration environment based on an analysis of container images corresponding to respective containers currently running in the container orchestration environment;
- determine, using the dependency graph, a minimum number of host nodes in the container orchestration environment that satisfies software resource dependencies of each respective container based on a group of containers that each respective host node of the minimum number of host nodes can run using shared software resources;
- and
- schedule each respective group of containers to run on a corresponding host node of the minimum number of host nodes using the shared software resources needed by that particular group of containers.
A computer program product for host node container packing, the computer program product comprising a set of computer-readable storage media having program instructions collectively stored therein, the program instructions executable by a computer to cause the computer to:
- generate a dependency graph representing software resource dependencies between particular containers currently running in a container orchestration environment based on an analysis of container images corresponding to respective containers currently running in the container orchestration environment;
- determine, using the dependency graph, a minimum number of host nodes in the container orchestration environment that satisfies software resource dependencies of each respective container based on a group of containers that each respective host node of the minimum number of host nodes can run using shared software resources;
- and
- schedule each respective group of containers to run on a corresponding host node of the minimum number of host nodes using the shared software resources needed by that particular group of containers.
Dependencies are inferred from the claim text.