Stay organized with collections Save and categorize content based on your preferences.
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.
If you immediately migrate traffic to a new version without any running instances then your app will have a spike in latency while instances are being created. You can avoid a spike in latency by using the App Engine Admin API to provision sufficient instances of the new app's version before you migrate traffic to it.
Set minTotalInstances
for the new version to the number needed to handle expected traffic. After migration is complete, you can reset this field so that autoscaling occurs if traffic drops.
You can split traffic between versions of your app, increasing the amount of traffic a version receives in stages.
For information about splitting traffic between two or more versions of your app, see Traffic Splitting.
Before you beginBefore you can configure traffic to a version, ensure that your user account includes the required privileges.
Migrating traffic to a new version ConsoleTo migrate traffic in the Google Cloud console, go to the Versions page:
After installing the Google Cloud CLI, you run the gcloud app services set-traffic
command to migrate 100% of traffic to a single version. For example:
gcloud app services set-traffic [MY_SERVICE] --splits [MY_VERSION]=1
--migrate
flag:
gcloud app services set-traffic [MY_SERVICE] --splits [MY_VERSION]=1 --migrate
To programmatically migrate traffic, you can use the Admin API, see Migrating and Splitting Traffic for details.
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 2025-08-07 UTC.
[[["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 2025-08-07 UTC."],[[["Traffic migration in the flexible environment allows you to immediately switch request routing from one or more versions of your application to a single new version."],["To prevent latency spikes, provision sufficient instances of the new version using the App Engine Admin API before migrating traffic, and set `minTotalInstances` accordingly."],["Traffic can be migrated using the Google Cloud console, the `gcloud app services set-traffic` command, or programmatically through the Admin API."],["Gradual traffic migration is an option through the use of the `migrate` flag or the enabling of warmup requests, and can be configured from the console or through the `gcloud` command."],["Ensure your user account has the necessary privileges to configure traffic before you begin migrating traffic to a new version."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4