Traffic migration switches the request routing between the versions within a service of your application, moving traffic from one or more versions to a single new version.
Traffic is migrated immediately between your versions in the flexible environment. Unlike versions in the standard environment, gradual traffic migration is not supported in the flexible environment.
For information about splitting traffic between two or more versions of your app, see Traffic Splitting.
Before you begin
Before you can configure traffic to a version, ensure that your user account includes the required privileges.
Migrating traffic to a new version
To migrate traffic in the GCP Console, go to the Versions page:
- Select the version to which you want to migrate 100% of the traffic.
- Click Migrate traffic.
To migrate traffic immediately:
gcloud app services set-traffic [MY_SERVICE] --splits [MY_VERSION]=1
To programmatically migrate traffic, you can use the Admin API, see Migrating and Splitting Traffic for details.