Traffic Configuration Instructions
CloudBase Cloud Run supports traffic allocation by percentage and by URL parameters, enabling developers to implement features such as canary release and blue-green deployment.
Allocate Traffic by Percentage (Random)
- Click
Traffic Configuration. - Mode defaults to
by Percentage. - Select the latest version just deployed and the old version currently running, then specify a traffic percentage for each version. The sum of all percentages must equal 100% or 0%, otherwise the configuration cannot be completed. For versions not added in the traffic configuration window, their traffic percentages will be uniformly set to 0%.
- Click Complete, and the system will immediately begin randomly allocating traffic by percentage, redirecting part of the traffic from the old version to the new version.
Allocate Traffic by URL Parameters (Targeted)
- Click
Traffic Configuration. - Select
by URL parametersfor the mode. - Add the latest deployed version, set the URL parameter key and value (Glob expressions supported). Requests meeting the conditions will be routed to the new version.
- Add the old version currently running and the corresponding URL parameters.
- Set the old version as the default version.
- In "Match Result Prediction", input URL parameters to simulate a request, click Predict to view the corresponding version and debug the configuration.
- Click Complete, and the system will immediately begin redirecting part of the traffic from the old version to the new version.