You need to deploy a new feature into production on Cloud Run. Your company’s SRE team mandates gradual deployments to avoid large downtimes caused by code change errors. You want to configure this deployment with minimal effort. What should you do?
A.
Configure the application’s frontend load balancer to toggle between the new and old revisions.
B.
Configure the application code to send a small percentage of users to the newly deployed revision.
C.
Deploy the feature with “Serve this revision immediately” unchecked, and configure the new revision to serve a small percentage of traffic. Check for errors, and increase traffic to the revision as appropriate.
D.
Deploy the feature with “Serve this revision immediately” checked. Check for errors, roll back to the previous revision, and repeat the process until you have verified that the deployment is bug-free.
https://cloud.google.com/run/docs/rollouts-rollbacks-traffic-migration#gradual
In the Google Cloud console, go to Cloud Run:
Go to Cloud Run
Select a service in the services list.
Click Deploy New Revision.
Fill out the deploy form as needed, but make sure the checkbox labelled Serve this revision immediately is UNCHECKED.
Click Deploy.
Click Manage Traffic.
The new revision is listed but with a 0 percentage set: it is currently not serving any traffic. In the form:
Set it to the desired percentage, for example, 5. Note that the currently serving version's percentage is automatically reduced by that same amount.
Click Save.
Repeat these Manage Traffic steps but with changed percentages, increasing the percentage as needed for the new revision. You do not need to redeploy to change the traffic percentages.
By deploying the new feature with “Serve this revision immediately” unchecked, you can control how much traffic the new revision receives without fully switching over to it.
Configuring a small percentage of traffic to go to the new revision allows for gradual testing in production with real users, minimizing the risk of downtime or large-scale errors.
If no issues are encountered, you can gradually increase the traffic to the new revision until it fully replaces the old one.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Pime13
4 weeks, 1 day agoyokoyan
4 months agoanshad666
10 months ago