[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/compute/docs/nodes/about-manual-live-migration [Back]  [Original]

About manual live migration  |  Compute Engine  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

About manual live migration Stay organized with collections Save and categorize content based on your preferences.

Sole-tenancy lets you create VMs on a specific sole-tenant node or in a group of nodes. If you create a VM in a group of nodes, Compute Engine optimizes the space available for VMs in the node group by using a bin-packing algorithm to determine the node to place the VM on. For information about sole-tenancy, see Sole-tenancy overview.

As your workload runs, you might want to move VMs to a different node or node group. To move sole-tenant VMs to a different node or node group, you can manually initiate a live migration. You can also manually initiate a live migration to move a multi-tenant VM into sole-tenancy.

Use cases for manual live migration

The following list shows some use cases for manually live migrating VMs:

Examples

To understand how manual live migration supports the preceding use cases, review the following examples.

Manual bin packing

To more efficiently arrange VMs in a node group to fit additional VMs, you can use manual live migration to choose which nodes to put sole-tenant VMs on.

Consider a sole-tenant node group with the following initial state, on which you are trying to schedule an additional VM with 16 vCPUs:

Initial state Node 1 Node 2 Total
vCPU capacity 80 80 160
VM vCPUs 72 64, 8 144
Unused capacity 8 8 16

There is not enough space on any node to schedule a VM with 16 vCPUs. However, there is enough aggregate space.

To make space for the 16 vCPU VM, initiate a live migration of the 8 vCPU VM from Node 2 to Node 1. The following table shows the new VM configuration:

Final state Node 1 Node 2 Total
vCPU capacity 80 80 160
VM vCPUs 72, 8 64, 16 160
Unused capacity 0 0 0

The following figure summarizes this process:

Manual bin packing of VMs to make room for a larger VM. [Manual bin packing of VMs to make room for a larger VM.] Figure 1: Manual bin packing of VMs to make space for a VM that has more vCPUs.

Autoscale after bin packing

After bin packing, there might be sole-tenant nodes without any VMs. In this case, the sole-tenant node autoscaler can remove the empty node.

Consider a sole-tenant node group with the following initial state. If you move the 8 vCPU VM, the node group autoscaler can remove a node:

Initial state Node 1 Node 2 Total
vCPU capacity 80 80 160
VM vCPUs 8 72 80
Unused capacity 72 8 80

To notify the node group autoscaler of an empty node, initiate a live migration of the 8 vCPU VM from Node 1 to Node 1. The following table shows the new VM configuration:

Final state Node 1 Node 2 Total
vCPU capacity 80 80 160
VM vCPUs 0 72, 8 80
Unused capacity 80 0 80

Now that Node 1 is empty, the autoscaler can remove it from the node group. The following table shows the new VM configuration:

Final state Node 1 Node 2 Total
vCPU capacity - 80 80
VM vCPUs - 72, 8 80
Unused capacity - 0 80

The following figure summarizes this process:

Manual bin packing of VMs to consolidate on one node. Then, the autoscaler can remove the empty node. [Manual bin packing of VMs to consolidate on one node. Then, the autoscaler can remove the empty node.] Figure 2: Manual bin packing of VMs to consolidate nodes.

Limitations

The following limitations apply when manually live migrating VMs:

Pricing

There are no additional charges for manually live migrating VMs. For more information about how you are billed for sole-tenant nodes, see Sole-tenant node pricing.

If a sole-tenant node is empty after the migration and you have enabled the sole-tenant node autoscaler, manually live migrating VMs might lower your charges.

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page