Automated infrastructure updates in a cluster environment that includes containers
AssigneeInternational Business Machines Corporation
InventorsMariusz Sabath, Jia Jun Brandon Lum, Alaa Youssef, Malgorzata Steinder, Asser Nasreldin Tantawi
Life of this patent
Estimating the term…
Abstract
Aspects of the invention include selecting a node for an infrastructure update. The selected node is included in a cluster of nodes executing workloads that include containers. A future workload is prevented from being scheduled on the selected node. A workload currently executing on the selected node is migrated to another node included in the cluster of nodes. Infrastructure code on the selected node is updated, and in response to the updating, the ability to schedule a future workload on the selected node is enabled.
Claims18
A computer-implemented method comprising:
- selecting, using a processor, a node for an infrastructure update, the selected node included in a cluster of nodes executing workloads that include containers, each container including a self-contained runtime environment, the selecting based at least in part on an estimated number of times that each workload in the cluster will be migrated during the infrastructure update in response to the processor selecting the selected node;
- preventing, using the processor, a future workload from being scheduled on the selected node;
- migrating, using the processor, a workload currently executing on the selected node to another node included in the cluster of nodes, the workload executed by one or more containers that are migrated to the another node;
- updating, using the processor, infrastructure code on the selected node;
- and
- in response to the updating, enabling, using the processor, a future workload to be scheduled on the selected node.
A system comprising:
- a memory having computer readable instructions;
- and
- one or more processors for executing the computer readable instructions, the computer readable instructions controlling the one or more processors to perform operations comprising:
- selecting a node for an infrastructure update, the selected node included in a cluster of nodes executing workloads that include containers, each container including a self-contained runtime environment, the selecting based at least in part on an estimated number of times that each workload in the cluster will be migrated during the infrastructure update in response to the processor selecting the selected node;
- preventing a future workload from being scheduled on the selected node;
- migrating a workload currently executing on the selected node to another node included in the cluster of nodes, the workload executed by one or more containers that are migrated to the another node;
- updating infrastructure code on the selected node;
- and
- in response to the updating, enabling a future workload to be scheduled on the selected node.
A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform operations comprising:
- selecting a node for an infrastructure update, the selected node included in a cluster of nodes executing workloads that include containers, each container including a self-contained runtime environment, the selecting based at least in part on an estimated number of times that each workload in the cluster will be migrated during the infrastructure update in response to the processor selecting the selected node;
- preventing a future workload from being scheduled on the selected node;
- migrating a workload currently executing on the selected node to another node included in the cluster of nodes, the workload executed by one or more containers that are migrated to the another node;
- updating infrastructure code on the selected node;
- and
- in response to the updating, enabling a future workload to be scheduled on the selected node.
Dependencies are inferred from the claim text.