Application-assisted live migration
Abstract
Techniques for implementing application-assisted VM provisioning operations, and in particular application-assisted live migration, are provided. In one set of embodiments, a hypervisor of a source host system can notify a guest application that the VM within which the guest application runs will be imminently live migrated from the source host system to a destination host system, prior to actually carrying out the live migration. In response, the guest application can execute one or more remedial actions that mitigate or avoid issues which may arise with respect to its runtime operation when the VM is stunned and switched over to the destination host system.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 0.
Claims (15 — 3 Independent, 12 Dependent)
- Claim 1Independent Claim
A method comprising receiving, by a hypervisor of a first host system, a message for initiating live migration of a virtual machine (VM) from the first host system to a second host system; generating, by the hypervisor, a migration start notification for a guest application running within the VM; receiving, by the hypervisor, an acknowledgement from the guest application in response to the migration start notification; upon receiving the acknowledgement, proceeding, by the hypervisor, with live migrating the VM; generating, by a hypervisor of the second host system, a migration end notification for a migrated copy of the guest application running on the second host system; and in response to receiving the migration end notification, the migrated copy of the guest application reverting one or more actions.
- Claim 2Depends on #1
The method of claim 1 wherein in response to receiving the migration start notification, the guest application performs the one or more actions to prepare for the live migration of the VM.
- Claim 3Depends on #2
The method of claim 2 wherein the one or more actions include ensuring completion of an in-progress application task prior to returning the acknowledgement to the hypervisor, quiescing one or more functionalities of the guest application, or modifying fault tolerance behavior of the guest application.
- Claim 4Depends on #2
The method of claim 2 further comprising, upon failure of the live migration of the VM: generating, by the hypervisor, a migration end notification for the guest application running on the first host system.
- Claim 5Depends on #1
The method of claim 1 wherein if the hypervisor does not receive the acknowledgement from the guest application within a notification timeout period, the hypervisor proceeds with live migrating the VM without waiting further for the acknowledgement.
- Claim 6Independent Claim
A non-transitory computer readable storage medium having stored thereon program code executable by a hypervisor of a first host system, the program code embodying a method comprising: receiving a message for initiating live migration of a virtual machine (VM) from the first host system to a second host system; generating a migration start notification for a guest application running within the VM; receiving an acknowledgement from the guest application in response to the migration start notification; upon receiving the acknowledgement, proceeding with live migrating the VM; generating, by a hypervisor of the second host system, a migration end notification for a migrated copy of the guest application running on the second host system; and in response to receiving the migration end notification, the migrated copy of the guest application reverting one or more actions.
- Claim 7Depends on #6
The non-transitory computer readable storage medium of claim 6 wherein in response to receiving the migration start notification, the guest application performs one or more actions to prepare for the live migration of the VM.
- Claim 8Depends on #7
The non-transitory computer readable storage medium of claim 7 wherein the one or more actions include ensuring completion of an in-progress application task prior to returning the acknowledgement to the hypervisor, quiescing one or more functionalities of the guest application, or modifying fault tolerance behavior of the guest application.
- Claim 9Depends on #7
The non-transitory computer readable storage medium of claim 7 wherein upon failure of the live migration of the VM, the hypervisor generates a migration end notification for the guest application running on the first host system.
- Claim 10Depends on #6
The non-transitory computer readable storage medium of claim 6 wherein if the hypervisor does not receive the acknowledgement from the guest application within a notification timeout period, the hypervisor proceeds with live migrating the VM without waiting further for the acknowledgement.
- Claim 11Independent Claim
A host system comprising: a hypervisor; a volatile memory; and a non-transitory computer readable medium having stored thereon program code that causes the hypervisor to: receive a message for initiating live migration of a virtual machine (VM) from the host system to another host system; generate a migration start notification for a guest application running within the VM; receive an acknowledgement from the guest application in response to the migration start notification; and upon receiving the acknowledgement, proceed with live migrating the VM; generating, by a hypervisor of a second host system, a migration end notification for a migrated copy of the guest application running on the second host system; and in response to receiving the migration end notification, the migrated copy of the guest application reverting one or more actions.
- Claim 12Depends on #11
The host system of claim 11 wherein in response to receiving the migration start notification, the guest application performs one or more actions to prepare for the live migration of the VM.
- Claim 13Depends on #12
The host system of claim 12 wherein the one or more actions include ensuring completion of an in-progress application task prior to returning the acknowledgement to the hypervisor, quiescing one or more functionalities of the guest application, or modifying fault tolerance behavior of the guest application.
- Claim 14Depends on #12
The host system of claim 12 wherein upon failure of the live migration of the VM, the hypervisor generates a migration end notification for the guest application running on the first host system.
- Claim 15Depends on #11
The host system of claim 11 wherein if the hypervisor does not receive the acknowledgement from the guest application within a notification timeout period, the hypervisor proceeds with live migrating the VM without waiting further for the acknowledgement.
Technical Overview & Description
BACKGROUND Unless otherwise indicated, the subject matter described in this section is not prior art to the claims of the present application and is not admitted as being prior art by inclusion in this section. Live migration is a virtual machine (VM) provisioning operation that enables a VM to be moved from one host system to another while the VM remains operational. Live migration provides a number of important benefits for virtual infrastructure deployments, such as the ability to dynamically load balance compute workloads across host systems and the ability to carry out proactive host maintenance with minimal VM downtime. In a typical live migration of a VM from a source host system to a destination host system, there is a brief time window (known as the “ switchover ” point) during which the VM is stunned (i.e., quiesced) on the source host system and its execution state is transferred to the destination host system. This usually lasts one second or less. Once the execution state transfer is complete, a migrated copy of the VM is resumed on the destination host system. Unfortunately, many latency-sensitive applications (e.g., voice over IP (VoIP) applications, clustered database applications, etc.) cannot gracefully handle an unexpected disruption of even one second to their runtime operation; they will often fail or become unresponsive when encountering such a disruption. As a result, live migration is generally disabled in existing virtual infrastructure deployments for VMs that run these types of guest applications. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 depicts an example environment. FIG. 2 depicts an example live migration process. FIG. 3 depicts an enhanced version of the environment of FIG. 1 and an application-assisted live migration workflow executed within the environment according to certain embodiments. FIG. 4 depicts notification registration workflow according to certain embodiments. FIG. 5 depicts a more detailed version of the application-ass
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (4)
| Patent | Title | Year | Citations |
|---|