# US 2022/0291960 A1 · Auto-recovery framework

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

- Number: US 2022/0291960 A1
- Document ID: US20220291960A1
- Status: Published application
- Kind: A1
- Application number: 17/201,225
- Filed: 2021-03-15
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Shenol Hulmi Yousouf; Nikolai Veselinov Neichev; Kaloyan Stefanov Nikov
- Web page: https://patentgrep.com/patent/US20220291960A1

## CPC

- G06F 9/4887: {involving deadlines, e.g. rate based, periodic}
- G06F 11/1482: using middleware or operating system [OS] functionalities
- G06F 9/5072: {Grid computing}
- G06F 11/0715: {in a system implementing multitasking (multitasking per se G06F9/46)}
- 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/3051: {Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs (verification or detection of system hardware configuration G06F11/2247)}
- G06F 2209/486: Scheduler internals
- G06F 2209/505: Clust
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to computer-implemented methods, software, and systems for an automatic recovery job execution through a scheduling framework in a cloud environment. One or more recovery jobs are scheduled to be performed periodically for one or more registered service components included in a service instance running on a cluster node of a cloud platform. Each recovery job is associated with a corresponding service component of the service instance. A health check operation is invoked at a service component based on executing a recovery job at the scheduling framework corresponding to the service component. In response to determining that the service component needs a recovery measure based on a result from the health check operation, a recovery operation is invoked as part of executing a set of scheduled routines of the recovery job. Implemented logic for the recovery operation is stored and executed at the service component.

## Claims

### Claim 1

A computer-implemented method for executing a recovery job at a scheduling framework, the method comprising:
scheduling one or more recovery jobs to be performed periodically for one or more registered service components included in a service instance running on a cluster node of a cloud platform, wherein each recovery job is associated with a corresponding service component of the service instance;
invoking a health check operation at a service component based on executing a recovery job at the scheduling framework corresponding to the service component, wherein the recovery job includes a set of scheduled routines for the service component; and
in response to determining that the service component needs a recovery measure based on a result from the health check operation, invoking a recovery operation as part of executing the set of scheduled routines of the recovery job, wherein an implemented logic for the recovery operation is stored and executed at the service component.

### Claim 2 (depends on 1)

The method of claim 1, wherein the recovery job includes execution parameters for the set of scheduled routines, the execution parameters including a job interval and a delay threshold value, wherein the delay threshold value defines a time period during which the recovery job execution awaits a response from the service component for the health check operation, and wherein the job interval defines a threshold period for invoking a subsequent recovery job corresponding to the invoked recovery job, and wherein a set of recovery jobs form a sequence of recovery jobs scheduled for periodic execution for the service component.

### Claim 3 (depends on 1)

The method of claim 1, wherein the service instance runs as a first service instance of a set of service instances of a cloud service running at multiple cluster nodes of the cloud platform, and wherein recovery jobs scheduled for each of the set of service instances are scheduled and executed separately at corresponding runtime environments of the multiple cluster nodes of the cloud platform.

### Claim 4 (depends on 1)

The method of claim 1, wherein the service instance including the one or more service components runs on a single virtualized runtime environment, and wherein the scheduling framework is deployed in the single virtualized runtime environment.

### Claim 5 (depends on 1)

The method of claim 1, wherein the recovery job includes implemented logic for executing the scheduled routines at the scheduling framework, and wherein the implemented logic for executing the scheduled routines is decoupled from the logic implemented for executing the health check operation and the recovery operation at the service component.

### Claim 6 (depends on 1)

The method of claim 1, wherein the recovery job includes a recovery configuration parameter defining a number of invocations of the health check operation that result in determining that the recovery measure is needed, before invoking the recovery operation.

### Claim 7 (depends on 1)

The method of claim 1, wherein logic for execution of the health check operation is implemented at the service component.

### Claim 8 (depends on 1)

The method of claim 1, wherein the one or more service components are registered at an auto-recovery job registry for monitoring of health statuses and execution of recovery operations by the scheduling framework, wherein the one or more service components include logic for execution of corrective auto-recovery measures at each corresponding service component.

### Claim 9 (depends on 8)

The method of claim 8, wherein a service component from the one or more registered service components is unregistered at the auto-recovery job registry, and wherein the method further comprises, in response to unregistering of a service component, deleting scheduled recovery jobs for the service component at the scheduling framework.

### Claim 10 (depends on 1)

The method of claim 1, wherein a registered service component is associated with a schedule for periodic monitoring for determining issues at the service component through invoking health check operations initiated from the scheduling framework.

### Claim 11

A non-transitory, computer-readable medium coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations, the operations comprising:
scheduling one or more recovery jobs to be performed periodically for one or more registered service components included in a service instance running on a cluster node of a cloud platform, wherein each recovery job is associated with a corresponding service component of the service instance;
invoking a health check operation at a service component based on executing a recovery job at the scheduling framework corresponding to the service component, wherein the recovery job includes a set of scheduled routines for the service component; and
in response to determining that the service component needs a recovery measure based on a result from the health check operation, invoking a recovery operation as part of executing the set of scheduled routines of the recovery job, wherein an implemented logic for the recovery operation is stored and executed at the service component.

### Claim 12 (depends on 11)

The computer-readable medium of claim 11, wherein the recovery job includes execution parameters for the set of scheduled routines, the execution parameters including a job interval and a delay threshold value, wherein the delay threshold value defines a time period during which the recovery job execution awaits a response from the service component for the health check operation, and wherein the job interval defines a threshold period for invoking a subsequent recovery job corresponding to the invoked recovery job, and wherein a set of recovery jobs form a sequence of recovery jobs scheduled for periodic execution for the service component.

### Claim 13 (depends on 11)

The computer-readable medium of claim 11, wherein the service instance runs as a first service instance of a set of service instances of a cloud service running at multiple cluster nodes of the cloud platform, wherein recovery jobs scheduled for each of the set of service instances are scheduled and executed separately at corresponding runtime environments of the multiple cluster nodes of the cloud platform, wherein the service instance including the one or more service components runs on a single virtualized runtime environment, and wherein the scheduling framework is deployed in the single virtualized runtime environment.

### Claim 14 (depends on 11)

The computer-readable medium of claim 11, wherein the recovery job includes implemented logic for executing the scheduled routines at the scheduling framework, and wherein the implemented logic for executing the scheduled routines is decoupled from the logic implemented for executing the health check operation and the recovery operation at the service component.

### Claim 15 (depends on 11)

The computer-readable medium of claim 11, wherein the recovery job includes a recovery configuration parameter defining a number of invocations of the health check operation that result in determining that the recovery measure is needed, before invoking the recovery operation, and wherein logic for execution of the health check operation is implemented at the service component.

### Claim 16 (depends on 11)

The computer-readable medium of claim 11, wherein the one or more service components are registered at an auto-recovery job registry for monitoring of health statuses and execution of recovery operations by the scheduling framework, wherein the one or more service components include logic for execution of corrective auto-recovery measures at each corresponding service component, and wherein a registered service component is associated with a schedule for periodic monitoring for determining issues at the service component through invoking health check operations initiated from the scheduling framework.

### Claim 17

A system comprising
a computing device; and
a computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations, the operations comprising:
scheduling one or more recovery jobs to be performed periodically for one or more registered service components included in a service instance running on a cluster node of a cloud platform, wherein each recovery job is associated with a corresponding service component of the service instance;
invoking a health check operation at a service component based on executing a recovery job at the scheduling framework corresponding to the service component, wherein the recovery job includes a set of scheduled routines for the service component; and
in response to determining that the service component needs a recovery measure based on a result from the health check operation, invoking a recovery operation as part of executing the set of scheduled routines of the recovery job, wherein an implemented logic for the recovery operation is stored and executed at the service component.

### Claim 18 (depends on 17)

The system of claim 17, wherein the recovery job includes execution parameters for the set of scheduled routines, the execution parameters including a job interval and a delay threshold value, wherein the delay threshold value defines a time period during which the recovery job execution awaits a response from the service component for the health check operation, and wherein the job interval defines a threshold period for invoking a subsequent recovery job corresponding to the invoked recovery job, and wherein a set of recovery jobs form a sequence of recovery jobs scheduled for periodic execution for the service component.

### Claim 19 (depends on 17)

The system of claim 17, wherein the service instance runs as a first service instance of a set of service instances of a cloud service running at multiple cluster nodes of the cloud platform, wherein recovery jobs scheduled for each of the set of service instances are scheduled and executed separately at corresponding runtime environments of the multiple cluster nodes of the cloud platform, wherein the service instance including the one or more service components runs on a single virtualized runtime environment, and wherein the scheduling framework is deployed in the single virtualized runtime environment.

### Claim 20 (depends on 17)

The system of claim 17, wherein the recovery job includes implemented logic for executing the scheduled routines at the scheduling framework, and wherein the implemented logic for executing the scheduled routines is decoupled from the logic implemented for executing the health check operation and the recovery operation at the service component.
