# US 2019/0317948 A1 · System for live-migration and automated recovery of applications in a distributed system

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

- Number: US 2019/0317948 A1
- Document ID: US20190317948A1
- Status: Published application
- Kind: A1
- Application number: 16/452,507
- Filed: 2019-06-25
- Published: 2019-10-17
- Earliest claimed: 2011-09-23
- Assignees: Open Invention Network, LLC
- Applicants: Open Invention Network LLC
- Inventors: Luke Marsden
- Web page: https://patentgrep.com/patent/US20190317948A1

## CPC

- G06F 16/273: {Asynchronous replication or reconciliation}
- G06F 11/0757: {by exceeding a time limit, i.e. time-out, e.g. watchdogs}
- G06F 11/2028: {eliminating a faulty processor or activating a spare}
- G06F 11/2097: {maintaining the standby controller/processing unit updated (initialisation or re-synchronisation thereof G06F11/1658 and subgroups)}
- G06F 11/3433: {for load management (allocation of a server based on load conditions G06F9/505; load rebalancing G06F9/5083; redistributing the load in a network by a load balancer H04L67/1029)}
- G06F 16/214: {Database migration support}
- G06F 11/2038: {with a single idle spare processing component}
- G06F 11/2094: {Redundant storage or storage space (G06F11/2056 takes precedence)}
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and apparatus for distribution of applications amongst a number of servers, ensuring that changes to application data on a master for that application are asynchronously replicated to a number of slaves for that application. Servers may be located in geographically diverse locations; the invention permits data replication over high-latency and lossy network connections and failure-tolerance under hardware and network failure conditions. Access to applications is mediated by a distributed protocol handler which allows any request for any application to be addressed to any server, and which, when working in tandem with the replication system, pauses connections momentarily to allow seamless, consistent live-migration of applications and their state between servers. Additionally, a system which controls the aforementioned live-migration based on dynamic measurement of load generated by each application and the topological preferences of each application, in order to automatically keep servers at an optimum utilisation level.

## Claims

### Claim 1

A system for dynamic migration of applications between servers, the system comprising:
a plurality of servers for hosting applications, the plurality of servers comprising at least a master server and one or more slave servers, one or more applications executing on said master server, each server comprising at least a protocol handler configured to receive requests for said one or more applications and configured to pause incoming requests for said one or more applications during a migration of said applications between servers, and the master server comprising master logic configured to replicate changes in application data hosted on the master server to one or more slave servers; and
a load balancer for measuring load on one of the plurality of servers caused by one or more applications hosted on that servers, the load balancer being configured to initiate migration of one or more applications from the master server to a slave server when a predetermined load condition of the master server is met;
wherein said migration is triggered when the load of the current master is greater than an average value of loads and a damping factor (Q).

### Claim 2 (depends on 1)

A system according to claim 1 wherein the plurality of servers each has a controller that maintains a record of the server on which an application is currently hosted, and the protocol handler is configured to inspect the record to determine the server to which an incoming application request is to be directed.

### Claim 3 (depends on 1)

A system according to claim 1 wherein the protocol handler is configured to pause incoming requests for an application and to terminate current requests for an application after a predetermined time period.

### Claim 4 (depends on 1)

A system according to claim 1 wherein the protocol handler is configured to pause incoming requests for an application for a predetermined time period and to release the paused requests if current requests for an application have not completed in the predetermined time period.

### Claim 5

Computer software which, when executed by appropriate processing means, causes the processing means to implement a method of managing a plurality of applications hosted by a cluster of servers which each have an interface connectable to at least one client by a network, each application delivering a service at the client, comprising:
electing a server of the cluster as a master server, the master server hosting at least one live application and electing a configurable number of servers in the cluster as slave servers;
replicating changes in application data of the live application hosted on the master server to said elected slave servers whereby each elected slave server maintains at least one version of the application data of the live application; and
transferring hosting of the application from the master server to one of the elected slave servers in response to an event in the cluster;
wherein said event in the cluster comprises detecting an alternative master server in the cluster based on the load of the current master being greater than an average value of loads of all of the servers in the cluster and a damping factor (Q).

### Claim 6 (depends on 5)

Computer software according to claim 5 wherein the event is detection of a preferred alternate master server based on the locality of servers in the cluster.

### Claim 7 (depends on 5)

Computer software according to claim 5 wherein the event is detection of a preferred alternate master server in the cluster based on a predefined user preference.

### Claim 8 (depends on 5)

Computer software according to claim 5 wherein the event is detected by exchanging messages with other servers of the cluster.

### Claim 9 (depends on 5)

Computer software according to claim 5 wherein the event is addition of a server to the cluster.

### Claim 10 (depends on 9)

Computer software according to claim 9 wherein the cluster included a single server prior to addition of the one server.

### Claim 11 (depends on 5)

Computer software according to claim 5 wherein the event is removal of a server from the cluster, wherein the removal was anticipated.

### Claim 12 (depends on 9)

Computer software according to claim 9 wherein on addition of the server to the cluster, the new load of the servers is determined, and a decision as to which of the applications hosted by the cluster should be migrated to the newly added server is made.

### Claim 13 (depends on 5)

Computer software according to claim 5 wherein the event is failure of a server in the cluster.

### Claim 14 (depends on 13)

Computer software according to claim 13 wherein the data for live applications hosted by the failed server is recovered using versions of the current application on servers in the cluster which are continuing to operate.

### Claim 15 (depends on 5)

Computer software according to claim 5 wherein the event is a partition of the cluster.

### Claim 16 (depends on 15)

Computer software according to claim 15 wherein after recovery from the partition a preferred alternate master server is selected from a number of potentially competing master servers as the server with the version of the current application data which is more valuable.

### Claim 17 (depends on 5)

Computer software according to claim 5 wherein a leader function hosted on one of the servers determines the new master server for the application, wherein the leader function is on a different server from the master.

### Claim 18 (depends on 5)

Computer software according to claim 5 wherein a leader function hosted on the current master server determines the new master server.

### Claim 19

Computer software which, when executed by appropriate processing means, causes the processing means to implement a system for dynamic migration of applications between servers, the system comprising:
one or more servers comprising a master server and one or more slave servers, one or more applications on each of said master server and one or more slave servers, a protocol handler configured to receive requests for said one or more applications and configured to pause incoming requests for said one or more applications during a migration of applications between servers, and master logic configured to replicate changes in application data hosted on the master server to one or more of said slave servers; and
a load balancer configured to measure load on the one or more servers caused by the one or more applications, and configured to initiate a migration of one or more applications from the master server to a slave server when the load of the master server is greater than an average value of loads and a damping factor (Q).

### Claim 20

A system, comprising:
one or more servers comprising a master server and one or more slave servers, one or more applications on each of said master server and one or more slave servers, a protocol handler configured to receive requests for said one or more applications and configured to pause incoming requests for said one or more applications during a migration of applications between servers, and master logic configured to replicate changes in application data hosted on the master server to one or more of said slave servers; and
a load balancer configured to measure load on the one or more servers caused by the one or more applications, and configured to initiate a migration of one or more applications from the master server to a slave server when the load of the master server is greater than an average value of loads and a damping factor (Q).
