# US 2017/0285981 A1 · Fault-tolerant and highly-available configuration of distributed services

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

- Number: US 2017/0285981 A1
- Document ID: US20170285981A1
- Status: Published application
- Kind: A1
- Application number: 15/284,957
- Filed: 2016-10-04
- Published: 2017-10-05
- Earliest claimed: 2015-10-13
- Assignees: Palantir Technologies Inc.
- Applicants: Palantir Technologies, Inc.
- Inventors: Greg DeArment
- Web page: https://patentgrep.com/patent/US20170285981A1

## CPC

- H04L 67/1095: Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
- G06F 9/44: Arrangements for executing specific programs
- G06F 9/44505: {Configuring for program initiating, e.g. using registry, configuration files}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/465: {Distributed object oriented systems (remote method invocation [RMI] G06F9/548)}
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06F 9/4806: {Task transfer initiation or dispatching}
- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 9/5005: {to service a request}
- G06F 11/07: Responding to the occurrence of a fault, e.g. fault tolerance
- G06F 11/0709: {in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems}
- G06F 11/14: Error detection or correction of the data by redundancy in operations (error detection or correction of the data by redundancy in hardware G06F11/16)
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- H04L 41/5054: Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Fault-tolerant and highly available configuration of distributed services including a computer-implemented method for distributed task orchestration. The method includes setting a watch on a first key in a first replica of a distributed configuration store and setting a value of a second key in a second replica of the distributed configuration store where the value of the second key indicates that a first sub-task of a distributed task is successfully complete. The value of the second key is received based on the watch set on the first key and execution of the second sub-tasks is initiated based on receiving the value of the second key. Also disclosed are techniques for service lifecycle management.

## Claims

### Claim 1

A method for distributed task orchestration, the method comprising:
setting a watch on a first key in a first replica of a distributed configuration store;
setting a value of a second key in a second replica of the distributed configuration store, the value of the second key indicating that a first sub-task of a distributed task is successfully complete;
wherein the second replica comprises the first key;
wherein the value of the second key set in the second replica is replicated from the second replica to the first replica based at least in part on a consensus protocol;
wherein the first replica and the second replica are stored at different hosts;
based, at least in part, on the watch set on the first key, receiving the value of the second key from the first replica; and
based, at least in part, on the receiving the value of the second key from the first replica, initiating execution of a second sub-task of the distributed task that is dependent on successful completion of the first sub-task.

### Claim 2 (depends on 1)

The method of claim 1, wherein the watch set of the first key is a forward watch.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
the first replica is stored at a first host;
the second replica is stored at a second host that is not the first host;
the setting the watch on the first key, the receiving the value of the second key, and the initiating the execution of the second sub-task are performed at the first host; and
the setting the value of the second key is performed at the second host.

### Claim 4 (depends on 1)

The method of claim 1, wherein the setting the value of the second key is based, at least in part, on successfully completing execution of the first sub-task.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
based, at least in part, on task dependency information stored in the first replica, determining that initiating execution of the second sub-task is dependent on successful completion of the first sub-task.

### Claim 6

One or more non-transitory computer-readable media storing one or more programs for execution by one or more processors, the one or more programs comprising instructions for:
setting a watch on a first key in a first replica of a distributed configuration store;
setting a value of a second key in a second replica of the distributed configuration store, the value of the second key indicating that a first sub-task of a distributed task is successfully complete;
wherein the second replica comprises the first key;
wherein the value of the second key set in the second replica is replicated from the second replica to the first replica based at least in part on a consensus protocol;
wherein the first replica and the second replica are stored at different hosts;
based, at least in part, on the watch set on the first key, receiving the value of the second key from the first replica; and
based, at least in part, on the receiving the value of the second key from the first replica, initiating execution of a second sub-task of the distributed task that is dependent on successful completion of the first sub-task.

### Claim 7 (depends on 6)

The one or more non-transitory computer-readable media of claim 6, wherein the watch set of the first key is a forward watch.

### Claim 8 (depends on 6)

The one or more non-transitory computer-readable media of claim 6, wherein:
the first replica is stored at a first host;
the second replica is stored at a second host that is not the first host;
the setting the watch on the first key, the receiving the value of the second key, and the initiating the execution of the second sub-task are performed at the first host; and
the setting the value of the second key is performed at the second host.

### Claim 9 (depends on 6)

The one or more non-transitory computer-readable media of claim 6, wherein the setting the value of the second key is based, at least in part, on successfully completing execution of the first sub-task.

### Claim 10 (depends on 6)

The one or more non-transitory computer-readable media of claim 6, the one or more programs further comprising instructions for:
based, at least in part, on task dependency information stored in the first replica, determining that initiating execution of the second sub-task is dependent on successful completion of the first sub-task.

### Claim 11

A system, comprising:
one or more processors;
one or more storage media storing one or more programs for execution by the one or more processors, the one or more programs comprising instructions for:
setting a watch on a first key in a first replica of a distributed configuration store;
setting a value of a second key in a second replica of the distributed configuration store, the value of the second key indicating that a first sub-task of a distributed task is successfully complete;
wherein the second replica comprises the first key;
wherein the value of the second key set in the second replica is replicated from the second replica to the first replica based at least in part on a consensus protocol;
wherein the first replica and the second replica are stored at different hosts;
based, at least in part, on the watch set on the first key, receiving the value of the second key from the first replica; and
based, at least in part, on the receiving the value of the second key from the first replica, initiating execution of a second sub-task of the distributed task that is dependent on successful completion of the first sub-task.

### Claim 12 (depends on 11)

The system of claim 11, wherein the watch set of the first key is a forward watch.

### Claim 13 (depends on 11)

The system of claim 11, wherein:
the first replica is stored at a first host;
the second replica is stored at a second host that is not the first host;
the setting the watch on the first key, the receiving the value of the second key, and the initiating the execution of the second sub-task are performed at the first host; and
the setting the value of the second key is performed at the second host.

### Claim 14 (depends on 11)

The system of claim 11, wherein the setting the value of the second key is based, at least in part, on successfully completing execution of the first sub-task.

### Claim 15 (depends on 11)

The system of claim 11, the one or more programs further comprising instructions for:
based, at least in part, on task dependency information stored in the first replica, determining that initiating execution of the second sub-task is dependent on successful completion of the first sub-task.

### Claim at position 16

16-20. (canceled)

### Claim 21 (depends on 11)

The system of claim 11, the one or more programs further comprising instructions for:
setting a watch on a third key in the second replica;
based, at least in part, on successful completion of the second sub-task, setting a value of a fourth key in the first replica;
based, at least in part, on the watch set on the third key, receiving the value of the fourth key; and
based, at least in part, on the receiving the value of the fourth key, initiating execution of a third sub-task of the distributed task that is dependent on successful completion of the second sub-task.

### Claim 22 (depends on 11)

The system of claim 11, wherein:
the first replica is stored at a first host;
the second replica is stored at a second host that is not the first host;
the one or more programs further comprise instructions for:
performing the setting the watch on the first key in the first replica at the first host;
performing the setting the value of the second key in the second replica at the second host;
performing the receiving the value of the second key at the first host; and
performing the initiating execution of the second sub-task at the first host.

### Claim 23 (depends on 11)

The system of claim 11, wherein the receiving the value of the second key is based, at least in part, on a consensus protocol.

### Claim 24 (depends on 11)

The system of claim 11, the one or more programs further comprising instructions for:
setting a value of a third key in the first replica based, at least in part, successful completion of the second sub-task, the value of the third key indicating that the second sub-task completed successfully.
