# US 2020/0394062 A1 · Capability liveness of containerized services

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

- Number: US 2020/0394062 A1
- Document ID: US20200394062A1
- Status: Published application
- Kind: A1
- Application number: 16/440,624
- Filed: 2019-06-13
- Published: 2020-12-17
- Earliest claimed: 2019-06-13
- Assignees: Entit Software LLC
- Applicants: Entit Software LLC
- Inventors: Kishan THOMAS; Stephen Lee KIRKENDALL; Dongye PAN
- Web page: https://patentgrep.com/patent/US20200394062A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 11/302: {where the computing system component is a software system}
- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/3065: {Monitoring arrangements determined by the means or processing involved in reporting the monitored data (error or fault reporting or logging G06F11/0766)}
- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06F 40/205: Parsing
- G06F 2009/45575: {Starting, stopping, suspending or resuming virtual machine instances}
- G06F 2009/45591: {Monitoring or debugging support}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus may include a processor that may access and analyze a live log stream of activity of the containerized service and determine whether the containerized service is able to provide a capability of the service based on the analysis. For example, the processor may determine whether the containerized service is executing but is in a hung state and cannot provide the capability. To do so, the processor may parse the live log stream for comparison with log patterns that indicate that the service is no longer able to provide the capability. The patterns may be generated based on observations of output by services that are hung or otherwise cannot provide their respective capabilities. The processor may cause the container to be restarted when the analysis indicates that the capability is not being provided by the containerized service, such as when the containerized service is in a hung state.

## Claims

### Claim 1

An apparatus comprising:
a processor; and
a non-transitory computer readable medium on which is stored instructions that when executed by the processor, cause the processor to:
access an output of a containerized service, wherein the containerized service is to execute in a container and is to provide a capability based on successful execution of the containerized service in the container;
determine, based on the output, a capability liveness that indicates whether the containerized service is able to provide the capability, wherein the capability liveness is separate from a container liveness check that determines whether the container is responsive to requests;
determine that the containerized service is unable to provide the capability based on the determined capability liveness; and
cause the container to be restarted responsive to the determination that the containerized service is unable to provide the capability.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein to access the output, the instructions, when executed by the processor, are to cause the processor to:
intercept a standard output (STDOUT) of the containerized service.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein to cause the container to be restarted, the instructions, when executed by the processor, cause the processor to:
update a file to indicate that the container is to be restarted, wherein the file is used by a container management system to determine whether to restart the container.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the container management system comprises a master node that is to restart the container based on the file.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein to determine that the containerized service is unable to provide the capability, the instructions, when executed by the processor, cause the processor to:
determine that the containerized service is executing while in a hung state.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the containerized service provides the capability without accessing a network port used by the container, wherein the container liveness check provides the requests to the network port to determine whether the container is responsive to the requests.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the container liveness check comprises a liveness probe.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein to determine capability liveness based on the output, the instructions, when executed by the processor, cause the processor to:
access a set of log patterns associated with the containerized service having an inability to provide the capability;
parse the output based on the set of log patterns; and
determine whether the output matches one or more log patterns from among the set of log patterns.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein to access the set of log patterns, the instructions, when executed by the processor, cause the processor to:
access a file that includes the set of log patterns.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein the set of log patterns comprises a pattern with a repeat threshold, and wherein to parse the output, the instructions, when executed by the processor, cause the processor to:
determine a number of times that the output includes the pattern;
compare the number of times to the repeat threshold; and
determine whether the number of times exceeds the repeat threshold.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein the set of log patterns comprises a pattern with a repeat threshold and a time threshold, and wherein to parse the output, the instructions, when executed by the processor, cause the processor to:
determine a number of times that the output includes the pattern; and
determine whether the number of times exceeds the repeat threshold within the time threshold.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein the set of log patterns comprises an expected heartbeat and a time threshold.

### Claim 13 (depends on 8)

The apparatus of claim 8, wherein the set of log patterns comprises a compound pattern.

### Claim 14 (depends on 1)

The apparatus of claim 1, wherein to access the output, the instructions, when executed by the processor, cause the processor to:
execute, within the container, an agent that parses the output.

### Claim 15 (depends on 1)

The apparatus of claim 1, wherein to access the output, the instructions, when executed by the processor, cause the processor to:
execute, within a sidecar container separate from the container, an agent that parses the output.

### Claim 16

A method comprising:
accessing, by a processor, a standard output (STDOUT) of a service to execute in a node, wherein the service is to provide a capability based on successful execution of the service in the node;
parsing, by the processor, the STDOUT;
determining, by the processor, based on the parsing, that the service is unable to provide the capability; and
causing, by the processor, the node to restart the service responsive to the determination that the service is unable to provide the capability.

### Claim 17 (depends on 16)

The method of claim 16, wherein the node hosts a container and the service comprises a containerized service, and wherein causing the node to restart the service comprises causing a container management system to restart the container.

### Claim 18 (depends on 17)

The method of claim 17, wherein parsing the STDOUT comprises parsing the STDOUT in real-time as the service generates the STDOUT.

### Claim 19

A non-transitory computer readable medium on which is stored machine readable instructions that when executed by a processor, cause the processor to:
access an output of a service to execute in a container, wherein the service is to provide a capability based on successful execution of the service in the container;
parse the output based on a log pattern;
determine, based on the parsed output, that the service is in a hung state without exiting; and
cause the container to be restarted responsive to the determination that the service is in the hung state.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the output comprises a standard output (STDOUT) of the service, and wherein the instructions, when executed by a processor, cause the processor to:
pass the STDOUT to a log aggregator after the STDOUT has been parsed.
