Migrating Traffic

Traffic migration smoothly switches request routing when you upload a new version of a module, gradually moving traffic from the old version to the new version. You can only use traffic migration when a single version of your application is receiving 100% of all traffic to that module.

To split traffic between two or more versions of your application, see Traffic Splitting.

Adding warmup requests to your application

When using traffic migration you must enable warmup requests on the version you are migration to, or the target version. Warmup requests are already enabled by default in Java modules.

For more information, see Configuring Warmup Requests to Improve Performance.

Turning on traffic migration in the Google Cloud Platform Console

To begin migrating traffic, go to the Versions page in the Cloud Platform Console.
Go to the Versions page

  1. Select an available version.
  2. Click Migrate traffic.

Migration takes a short amount of time (possibly a few minutes), and the exact interval depends on how much traffic your app is receiving and how many instances are running. Once the migration is complete, the new version receives 100% of the traffic.

Send feedback about...