# US 2018/0024889 A1 · Automatic restarting of containers

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0024889 A1
- Document ID: US20180024889A1
- Status: Published application
- Kind: A1
- Application number: 15/216,153
- Filed: 2016-07-21
- Published: 2018-01-25
- Earliest claimed: 2016-07-21
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Rajat R. Verma; Sunil Kumar S. Singh
- Web page: https://patentgrep.com/patent/US20180024889A1

## CPC

- G06F 11/1438: {Restarting or rejuvenating}
- G06F 9/445: Program loading or initiating (bootstrapping G06F9/4401; security arrangements for program loading or initiating G06F21/57)
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 11/0766: {Error or fault reporting or storing}
- G06F 11/1482: using middleware or operating system [OS] functionalities
- G06F 2009/45575: {Starting, stopping, suspending or resuming virtual machine instances}
- G06F 2201/805: Real-time
- G06F 2201/85: Active fault masking without idle spares
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, a processing device, and a computer program product are provided. In various embodiments, a computing device reads predefined policy information defining one or more conditions for restarting a container. The computing device monitors the container to detect an occurrence of any one of the one or more conditions defined by the predefined policy information. The computing device automatically restarts the container after detecting the occurrence of any one of the one or more conditions defined by the predefined policy information. In some embodiments, the computing device waits a certain amount of time, as specified in the predefined policy information, before automatically restarting the container.

## Claims

### Claim 1

A method for automatically restarting a container, comprising:
reading, by a computing device, predefined policy information defining at least one condition for restarting the container;
monitoring the container, by the computing device, to detect an occurrence of any one of the at least one condition defined by the predefined policy information; and
automatically restarting the container, by the computing device, after detecting the occurrence.

### Claim 2 (depends on 1)

The method of claim 1, wherein the predefined policy information includes, for each of the at least one condition, a corresponding time interval which the computing device is to wait before performing the restarting of the container.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
saving a state of the container after detecting the occurrence and before automatically restarting the container.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
restoring the state of the container after performing the restarting.

### Claim 5 (depends on 1)

The method of claim 1, wherein the monitoring the container for an occurrence of any one of the at least one condition defined by the predefined policy information further comprises:
monitoring a produced log for the occurrence of the any one of the at least one condition of the container.

### Claim 6 (depends on 5)

The method of claim 5, wherein:
the information defining at least one condition for restarting the container includes at least a portion of a message; and
the monitoring the container for an occurrence of any one of the at least one condition defined by the predefined policy information further comprises:
monitoring the log for an occurrence of a string of characters having a pattern that matches a pattern of at least the portion of the message.

### Claim 7 (depends on 6)

The method of claim 6, wherein the message includes an error message.

### Claim 8

A computing device comprising:
at least one processor; and
a memory connected with the at least one processor, wherein the memory includes a plurality of instructions for the at least one processor to be configured to:
read predefined policy information included in a file, the predefined policy information defining at least one condition for restarting the container,
monitor the container to detect an occurrence of any one of the at least one condition defined by the predefined policy information, and
automatically restart the container after detecting the occurrence.

### Claim 9 (depends on 8)

The computing device of claim 8, wherein the predefined policy information includes, for each of the at least one condition, a corresponding time interval to wait before performing the restarting of the container.

### Claim 10 (depends on 8)

The computing device of claim 8, wherein the at least one processor is further configured to save a state of the container after detecting the occurrence and before restarting the container.

### Claim 11 (depends on 10)

The computing device of claim 10, wherein the at least one processor is further configured to restore the state of the container after performing the restarting.

### Claim 12 (depends on 8)

The computing device of claim 8, wherein the at least one processor is further configured to monitor a produced log for the occurrence of the any one of the at least one condition of the container.

### Claim 13 (depends on 12)

The computing device of claim 12, wherein:
the information defining at least one condition for restarting the container includes at least a portion of a message; and
the at least one processor is further configured to monitor the log for an occurrence of a string of characters having a pattern that matches a pattern of at least the portion of the message.

### Claim 14 (depends on 8)

The method of claim 8, wherein the message includes an error message.

### Claim 15

A computer program product comprising:
a computer readable storage medium having computer readable program code embodied therewith for execution on a computing system, the computer readable program code being configured to be executed by the computing system to:
read predefined policy information included in a file, the predefined policy information defining at least one condition for restarting a container;
monitor the container to detect an occurrence of any one of the at least one condition defined by the predefined policy information; and
automatically restart the container after detecting the occurrence.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the predefined policy information includes, for each of the at least one condition, a corresponding time interval to wait before performing the restarting of the container.

### Claim 17 (depends on 15)

The computer program product code of claim 15, wherein the computer readable program code is further configured to be executed by the processing system to:
save a state of the container after detecting the occurrence and before restarting the container; and
restore the state of the container after performing the restarting.

### Claim 18 (depends on 15)

The computer program product code of claim 15, wherein the computer readable program code is further configured to monitor a produced log for the occurrence of the any one of the at least one condition of the container.

### Claim 19 (depends on 18)

The computer program product code of claim 18, wherein:
the information defining at least one condition for restarting the container includes at least a portion of a message; and
the computer readable program code is further configured to be executed by the processing system to monitor the log for an occurrence of a string of characters having a pattern that matches a pattern of at least the portion of the message.

### Claim 20 (depends on 15)

The computer readable program code of claim 15, wherein the message includes an error message.
