# US 9,355,161 B1 · System and method for event-driven live migration of multi-process applications

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

- Number: US 9,355,161 B1
- Document ID: US9355161B1
- Status: Granted
- Kind: B1
- Application number: 14/088,972
- Filed: 2013-11-25
- Granted: 2016-05-31
- Earliest claimed: 2010-08-06
- Assignees: Open Invention Network, LLC
- Applicants: Open Invention Network LLC
- Inventors: Allan Havemose
- Web page: https://patentgrep.com/patent/US9355161B1

## CPC

- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 9/4856: {resumption being on a different machine, e.g. task migration, virtual machine migration (G06F9/5088 takes precedence)}
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 11/1458: {Management of the backup or restore process}
- G06F 11/203: {using migration}
- G06F 11/2097: {maintaining the standby controller/processing unit updated (initialisation or re-synchronisation thereof G06F11/1658 and subgroups)}
- G06F 11/2038: {with a single idle spare processing component}
- G06F 11/2041: {with more than one idle spare processing component}
- G06F 2201/805: Real-time
- G06F 2209/542: Intercept
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for event-driven live migration of applications between two or more servers. Primary applications runs on primary hosts and one or more replicated instances of each primary application run on one or more backup hosts. Event driven live migration is provided through a combination of process replication, logging, barrier synchronization, reliable messaging and message playback. The event driven live migration is transparent to the application and requires no modification to the application, operating system, networking stack or libraries.

## Claims

### Claim 1

A system, comprising:
one or more memory locations configured to store a primary application;
one or more Central Processing Units operatively connected to said one or more memory locations and configured to execute said primary application on a primary host with a host operating system and configured to send messages to one or more backup applications while said primary application is executed;
one or more backup hosts each with a host operating system and each comprising: computer system memory comprising one or more memory locations configured to store one or more backup applications, and one or more Central Processing Units operatively connected to said computer system memory and configured to execute said one or more backup applications and configured to receive the one or more messages sent from said primary application;
one or more events configured to trigger a live migration of a primary application from a primary host to one or more backup applications on one or more backup hosts;
wherein said messages are configured to provide consistency between the primary application and said one or more backup applications; and
a barrier, wherein said barrier is configured to halt execution before or after said messages are sent to the one or more backup applications.

### Claim 2 (depends on 1)

The system according to claim 1, wherein said host operating system is one of Linux, UNIX or Microsoft Windows.

### Claim 3 (depends on 1)

The system according to claim 1, wherein said messages are sent over one of User Datagram Protocol (UDP), Transmission Control Protocol (TCP), UDP using multicast, or UDP using broadcast.

### Claim 4 (depends on 1)

The system according to claim 1, wherein live migration of said primary application to said one or more backup hosts is performed in response to an event, wherein said event is one of operator generated live migration event, Central Processing Unit threshold event, memory threshold event, storage threshold event, Simple Network Management Protocol (SNMP) event, or script-generated event.

### Claim 5 (depends on 1)

The system according to claim 1 further comprising a barrier, wherein said barrier is configured to halt execution at said barrier.

### Claim 6 (depends on 1)

The system according to claim 1 further comprising a barrier, wherein said barrier is configured to halt execution while sending said messages sent to the one or more backup applications.

### Claim 7 (depends on 1)

The system according to claim 1, wherein the system is configured to choose a backup host based on one of preconfigured backup, operator-chosen backup, or backup chosen based on available resources.

### Claim 8 (depends on 1)

The system according to claim 1, wherein said event is generated external to said primary application.

### Claim 9 (depends on 1)

The system according to claim 1, further comprising at least one of:
a barrier for the primary application;
one or more barriers for the one or more backup applications; wherein:
said barrier for the primary application is configured to halt execution of the primary application;
said one or more barriers for the one or more backup application are configured to halt execution of the one or more backup applications;
said messages sent to the one or more backup applications are configured to generate a message for a backup to take over execution;
said backup application is configured to receive said message to take over and promote to new primary application;
said barrier for the primary application is configured to exit the primary application after sending said messages to the backup while still at the barrier; and
said barrier for the primary application is configured to halt execution at said barrier.

### Claim 10 (depends on 9)

The system according to claim 9, wherein said barrier for the primary application is configured to send said message for the backup to take over execution as a replication message and said one or more backup applications are configured to receive said message to take over execution as a replication message.

### Claim 11 (depends on 9)

The system according to claim 9, wherein the backup host is chosen based on one of preconfigured backup, operator-chosen backup, or backup chosen based on available resources.

### Claim 12 (depends on 9)

The system according to claim 9, wherein said message for the backup to take over execution is comprised of one or more of the network Internet Protocol (IP) address of said new primary or the fully qualified network host name for said new primary.

### Claim 13 (depends on 10)

The system according to claim 10, further comprising at least one of:
said backup is configured to take over execution upon receiving said message;
said barrier for the backup application is configured to exit said barrier upon receiving said message to take over execution.

### Claim 14 (depends on 10)

The system according to claim 10, wherein said message to take over execution is sent and received over a non-blocking reliable protocol.

### Claim 15 (depends on 10)

The system according to claim 10, wherein said message to take over execution is resent if not acknowledged.

### Claim 16 (depends on 10)

The system according to claim 10, wherein duplicate messages for the backup to take over execution are rejected.

### Claim 17 (depends on 10)

The system according to claim 10, wherein:
one backup is configured to be the designated backup; and
said message for the designated backup to take over execution is transmitted using Transmission Control Protocol (TCP).

### Claim 18 (depends on 10)

The system according to claim 10, wherein said message to take over execution is transmitted over one of User Datagram Protocol (UDP), UDP multicast or UDP broadcast.

### Claim 19

A method, comprising:
storing, at one or more memory locations, a primary application executing on a primary host with a host operating system;
generating, on said primary host, messages based on execution of said primary application;
transmitting said messages to one or more backups;
storing, at one or more additional memory locations, one or more backup applications executing on one or more backup hosts each with a corresponding host operating system;
receiving, by each one or more backup applications, said messages;
wherein said messages provide consistency between the primary application and said one or more backup applications; and
halting, by a barrier, execution before or after said messages are sent to the one or more backup applications.
