Skip to main content

Cutover with Minimal Downtime

The final cutover is the last step of migration. In this step, you turn off the source virtual machine, its last changes are transferred to Arvancloud, and you send the service's traffic to an instance you create from the latest slot. For example, if a machine's migration time is 00:00, on the night of the cutover you can turn the machine off shortly before 00:00 and bring the service up on the instance after the run finishes.

Cloud Migration doesn't set the cutover time for you. You perform this step manually, at a time you choose. Since the migration runs every day, the last run only transfers one day's changes, and your service is only unavailable between turning off the source machine and starting the instance.

Testing the Migration​

Before the final cutover, let the migration run for a few days and test the result. Create an instance from the latest slot of each virtual machine and check that the instance boots, the services run on it, and it has network access.

During the test days, check in the Event tab of the source details how long after the migration time each run reaches Done. This shows roughly how long the last run will take on the night of the cutover and how long your service will be unavailable.

An instance you create from a slot gets a new IP. If you've hardcoded the IP addresses of other machines in your service's settings, update these addresses on the instance.

After testing, delete the test instance so you stop being charged for it. The source virtual machine keeps working unchanged throughout this time.

Final Cutover​

Step 1: Choose the Cutover Time​

Choose a time when your service's traffic is at its lowest. If needed, set the virtual machines' migration time to this time with Edit Migration Time, and let your service's users know about the brief outage before the cutover.

Step 2: Turn Off the Source Machine​

Shortly before the migration time on the night of the cutover, stop the services on the source virtual machine and turn the machine off. This way, no new data is written to the source machine after the last run, and the instance will have exactly the same data.

Step 3: Wait for the Last Run​

At the scheduled time, the migration process transfers the disk's last changes. Go to the Event tab in Source Details and wait until the status of the virtual machine's last run is Done.

If the last run's status is Failed, turn the source machine back on so the service doesn't stay unavailable, check the cause of the error in the Agent logs, and postpone the cutover to another time.

Step 4: Create an Instance from the Latest Slot​

In the Slot tab, click the create instance icon next to the virtual machine's newest slot and create the instance. After it's created, check that the service runs correctly on the instance.

Step 5: Move the Traffic​

Change the service's address to the new instance's IP.

Step 6: Disable Migration​

After making sure the instance works, stop the migration of the migrated virtual machines with Disable Migration, and turn off the Agent machine in vSphere.

Note that you shouldn't delete the source virtual machine until you're sure the instance works completely. Until then, if a problem occurs, you can turn on the source machine and send traffic back to it.