IP Library › Granted Patent US 11,379,320
Granted Patent B2
US 11,379,320 · App. 16/923,233 · Granted Jul 5, 2022

Container recovery

Inventors: Ping Xiao (Zhangping, CN); Xin Zhou (Beijing, CN); Cheng Cheng Dong (Beijing, CN); Yu Long Tong (Ningbo, CN); Zhen Zhang (Beijing, CN)
Assignee: International Business Machines Corporation
G06F11/1469G06F9/44505G06F2201/84
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,379,320
App. No.
16/923,233
Granted
Jul 5, 2022
Kind
B2
Abstract

A processor initiates a run of a target container in a distributed computing environment. A processor detects at least one error occurring during the initiation of the target container. A processor determines at least one fix image based on the at least one error. A processor performs an error recovery of the target container based on the at least one fix image. A processor runs, in response to successfully performing the error recovery of the target container, the target container in the distributed computing environment.

Claims (63)

1. A method comprising:

initiating, by one or more processors, a run of a target container in a distributed computing environment;

detecting, by the one or more processors, at least one error occurring during the initiation of the target container;

determining, by the one or more processors, at least one fix image based, at least in part, on the at least one error;

performing, by the one or more processors, an error recovery of the target container based on the at least one fix image, wherein performing the error recovery of the target container further comprises:

initiating, by the one or more processors, a fix container based on the fix image, wherein the fix container creates a child container to the target container in a container hierarchy; and

in response to a determination that the fix container corrects the at least one error occurring during the initiation of the target container, updating, by the one or more processors, at least part of the target container using the fix container; and

running, by the one or more processors, in response to successfully performing the error recovery of the target container, the target container in the distributed computing environment.

2. The method of claim 1 , wherein performing the error recovery of the target container further comprises:

initiating, by the one or more processors, a fix container based on the fix image, wherein the fix container creates a child container to the target container in a container hierarchy;

in response to a determination that a second error occurs during the initiation of the fix container, determining, by the one or more processors, a second fix image based, at least in part, on the second error; and

performing, by the one or more processors, the error recovery of the target container with the fix container and the second fix image.

3. The method of claim 2 , wherein determining the second fix image further comprises:

determining, by the one or more processors, an error recovery criterion for performing the error recovery based on at least one or more of the following: a level of the fix container in the container hierarchy, a duration of the error recovery and a number of fix containers initiated for the error recovery.

4. The method of claim 3 , the method further comprising:

in response to the error recovery criterion for performing the error recovery exceeding a threshold, sending, by the one or more processors, an error message to the target container.

5. The method of claim 1 , wherein determining the at least one fix image further comprises:

determining, by the one or more processors, an association between the at least one fix image and the at least one error; and

selecting, by the one or more processors, the at least one fix image based on the association.

6. The method of claim 5 , wherein the at least one fix image comprises at least one fix selected from a group consisting of: a fix for a syntax error, a fix for an environment configuration error, and a fix for a dynamic error.

7. A computer program product comprising:

one or more computer-readable storage media and program instructions stored on the one or more computer-readable storage media, the program instructions comprising:

program instructions to initiate a run of a target container in a distributed computing environment;

program instructions to detect at least one error occurring during the initiation of the target container;

program instructions to determine at least one fix image based, at least in part, on the at least one error;

program instructions to perform an error recovery of the target container based on the at least one fix image, wherein program instructions to perform the error recovery of the target container further comprises:

program instructions to initiate a fix container based on the fix image, wherein the fix container creates a child container to the target container in a container hierarchy; and

in response to a determination that the fix container corrects the at least one error occurring during the initiation of the target container, program instructions to update at least part of the target container using the fix container; and

program instructions to run, in response to successfully performing the error recovery of the target container, the target container in the distributed computing environment.

8. The computer program product of claim 7 , wherein program instructions to perform the error recovery of the target container further comprises:

program instructions to initiate a fix container based on the fix image, wherein the fix container creates a child container to the target container in a container hierarchy;

in response to a determination that a second error occurs during the initiation of the fix container, program instructions to determine a second fix image based, at least in part, on the second error; and

program instructions to perform the error recovery of the target container with the fix container and the second fix image.

9. The computer program product of claim 8 , wherein program instructions to determine the second fix image further comprises:

program instructions to determine an error recovery criterion for performing the error recovery based on at least one or more of the following: a level of the fix container in the container hierarchy, a duration of the error recovery and a number of fix containers initiated for the error recovery.

10. The computer program product of claim 9 , the program instructions further comprising:

in response to the error recovery criterion for performing the error recovery exceeding a threshold, program instructions to send an error message to the target container.

11. The computer program product of claim 7 , wherein program instructions to determine the at least one fix image further comprises:

program instructions to determine an association between the at least one fix image and the at least one error; and

program instructions to select the at least one fix image based on the association.

12. The computer program product of claim 11 , wherein the at least one fix image comprises at least one fix selected from a group consisting of: a fix for a syntax error, a fix for an environment configuration error, and a fix for a dynamic error.

13. A computer system comprising:

one or more computer processors;

one or more computer readable storage media; and

program instructions stored on the computer readable storage media for execution by at least one of the one or more processors, the program instructions comprising:

program instructions to initiate a run of a target container in a distributed computing environment;

program instructions to detect at least one error occurring during the initiation of the target container;

program instructions to determine at least one fix image based, at least in part, on the at least one error;

program instructions to perform an error recovery of the target container based on the at least one fix image, wherein program instructions to perform the error recovery of the target container further comprises:

program instructions to initiate a fix container based on the fix image, wherein the fix container creates a child container to the target container in a container hierarchy; and

in response to a determination that the fix container corrects the at least one error occurring during the initiation of the target container, program instructions to update at least part of the target container using the fix container; and

program instructions to run, in response to successfully performing the error recovery of the target container, the target container in the distributed computing environment.

14. The computer system of claim 13 , wherein program instructions to perform the error recovery of the target container further comprises:

program instructions to initiate a fix container based on the fix image, wherein the fix container creates a child container to the target container in a container hierarchy;

in response to a determination that a second error occurs during the initiation of the fix container, program instructions to determine a second fix image based, at least in part, on the second error; and

program instructions to perform the error recovery of the target container with the fix container and the second fix image.

15. The computer system of claim 14 , wherein program instructions to determine the second fix image further comprises:

program instructions to determine an error recovery criterion for performing the error recovery based on at least one or more of the following: a level of the fix container in the container hierarchy, a duration of the error recovery and a number of fix containers initiated for the error recovery.

16. The computer system of claim 15 , the program instructions further comprising:

in response to the error recovery criterion for performing the error recovery exceeding a threshold, program instructions to send an error message to the target container.

17. The computer system of claim 13 , wherein program instructions to determine the at least one fix image further comprises:

program instructions to determine an association between the at least one fix image and the at least one error; and

program instructions to select the at least one fix image based on the association.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 8, 2020
From: XIAO, PING; ZHOU, XIN; DONG, CHENG CHENG; TONG, YU LONG; ZHANG, ZHEN
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 053146/0648 →
Continuity (1)
Related Publication 20220012137A1 · Jan 13, 2022
Cited By (1)
US 12,547,422