Split traffic between two Vertex AI Endpoint model deployments to perform a canary rollout

domain: cloud.google.com/vertex-ai/docs · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Deploy the production model version to a Vertex AI Endpoint using the gcloud ai endpoints deploy-model command or the SDK, setting an initial traffic split of 100% to the production deployment
  2. Deploy the new candidate model version to the same endpoint, specifying a traffic split that allocates the desired canary percentage to the new deployment and the remainder to the production deployment
  3. Confirm that all traffic split percentages across all deployed models on the endpoint sum to exactly 100; Vertex AI rejects splits that do not total 100
  4. Send prediction requests to the endpoint URL; Vertex AI routes each request to one of the deployed models according to the traffic split percentages
  5. Monitor prediction latency, error rates, and business metrics for each deployment ID using Cloud Monitoring to compare canary versus production performance
  6. Promote the canary by updating the endpoint traffic split to 100% for the new deployment; remove the old deployment to release resources

Known gotchas

Related routes

Register a model in Vertex AI Model Registry and deploy it to an Endpoint with traffic splits
cloud.google.com/vertex-ai/docs · 5 steps · unrated
Implement a canary rollout with Istio VirtualService traffic splitting using Argo Rollouts
argo-rollouts.readthedocs.io · 6 steps · unrated
Split traffic between two model-serving deployments with Istio for A/B testing
istio.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans