From the course: Google Cloud Associate Cloud Engineer Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Adjusting application traffic-splitting parameters

Adjusting application traffic-splitting parameters - Google Cloud Tutorial

From the course: Google Cloud Associate Cloud Engineer Cert Prep

Adjusting application traffic-splitting parameters

- Adjusting application traffic-splitting parameters. So when working with Cloud Run, one thing you can do is traffic splitting. This is when you want to assign different percentages of your incoming traffic to different revisions. So a revision in Cloud Run is a version of your application. So when you make software changes, and you deploy a new version of your application, or application container, you get a new revision, and it can assign different percentage of traffic to those different revisions. So this is useful if you want to do, for example, gradual rollouts, things like canary releases and if you want to roll back quickly from a faulty revision. So for our next example here would be to assign 20% to a revision, 80% to another revision. And the way you do that is with GCloud, you can run gcloud run deploy and the name of the service. This is to deploy, first of all a new revision, and we are tagging this new revision as canary, and we're saying no traffic to it yet. So this…

Contents