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.
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 graduallyYou can choose to route requests to the target version, either gradually or immediately.
By default, warmup requests are disabled and traffic is migrated immediately to a version. You can also choose to disable warmup requests if you want the traffic immediately migrated to a version.
If you immediately migrate traffic to a new version without any running instances then you will experience a spike in latency for loading requests. Deploying a new version with the same name as an existing version causes an immediate traffic migration. All instances of the old version are immediately shut down. There will be a latency spike due to loading requests for the new version.
Note: Gradual traffic migration traffic between versions running in the flexible environment is not supported. You must migrate traffic immediately to versions that are running in the flexible environment.If warmup requests are enabled, you can migrate traffic between versions that reside in different environments only by specifying to migrate traffic immediately.
Adding warmup requests to your applicationWhen warmup requests are enabled, traffic is migrated gradually by first sending a warmup request to new instances before those instances receive any user requests. Warmup requests improve user response time by allowing the version currently receiving traffic to handle those requests but the traffic migration to the new version can take a short amount of time while the new instances are created.
When warmup requests are not enabled, user requests are sent to those new instances before they have been created. Due to the delay caused by creating the new instances and loading application code, latency can occur for those user responses.
For all runtimes except for Java, to avoid latency and enable warmup requests, include the inbound_services
element in your configuration file before you deploy your application to App Engine.
For example, you include the following in your app.yaml
file before deploying it to App Engine:
inbound_services:
- warmup
For complete details about enabling warmup requests, see Configuring warmup requests to improve performance.
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 routes requests from one or more existing application versions to a single new version."],["Traffic migration can be executed immediately, which will cause a spike in latency due to loading the new version, or gradually if warmup requests are enabled."],["Warmup requests are recommended, which will gradually migrate traffic to new instances by first sending a warmup request to those instances before sending user requests to avoid latency."],["The Google Cloud console and the `gcloud app services set-traffic` command, as well as the Admin API can be used to migrate traffic."],["Gradual traffic migration is not supported between versions running in the flexible environment, it must be migrated immediately."]]],[]]
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