ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念 · 基于 SAA-C03

Deployment strategies and rollback

Blue/green with canary or linear shifting, rolling updates and shadow tests, with automatic rollback.

本课尚未翻译,暂以英文显示。

你在Solutions Architect Associate中已学过

  • Replace servers with new, tested ones instead of patching them, so every instance is identical.
  • Blue/green keeps two environments, switches traffic and can roll back at once.
阅读Solutions Architect Associate课程
Blue fleet (old)
Green fleet (new)
Blue fleet ends
CloudWatch alarm
Traffic back to blue
  1. 1SageMaker AI starts the green fleet and shifts traffic: all at once, canary or linear.
  2. 2Alarms watch the green fleet during the baking period.
  3. 3No alarm: the blue fleet is removed.
  4. 4An alarm trips: traffic returns to blue.
Blue/green with a baking period and an automatic rollback.

分步说明

  1. 1SageMaker AI starts the green fleet and shifts traffic: all at once, canary or linear.
  2. 2Alarms watch the green fleet during the baking period.
  3. 3No alarm: the blue fleet is removed.
  4. 4An alarm trips: traffic returns to blue.
  • All at once

    How traffic moves
    Everything moves, then a baking period
    Where
    SageMaker AI blue/green
  • Canary

    How traffic moves
    A small slice first, then the rest
    Where
    SageMaker AI, CodeDeploy
  • Linear

    How traffic moves
    Equal steps until all has moved
    Where
    SageMaker AI, CodeDeploy
  • Rolling

    How traffic moves
    New capacity in batches
    Where
    SageMaker AI
  • Shadow

    How traffic moves
    Copy of requests, answers dropped
    Where
    SageMaker AI shadow test
Five ways to release a model or a function.

1 / 2

  • All at once

    How traffic moves
    Everything moves, then a baking period
    Where
    SageMaker AI blue/green
  • Canary

    How traffic moves
    A small slice first, then the rest
    Where
    SageMaker AI, CodeDeploy
  • Linear

    How traffic moves
    Equal steps until all has moved
    Where
    SageMaker AI, CodeDeploy

2 / 2

  • Rolling

    How traffic moves
    New capacity in batches
    Where
    SageMaker AI
  • Shadow

    How traffic moves
    Copy of requests, answers dropped
    Where
    SageMaker AI shadow test
Five ways to release a model or a function.

是什么

SageMaker AI deployment guardrails update a real-time or asynchronous endpoint in a controlled way. Blue/green starts a new fleet (green) beside the old one (blue) and shifts traffic. All at once moves everything, then watches. Canary moves a small slice first, waits, then moves the rest. Linear moves traffic in equal steps. After each shift, CloudWatch alarms you name watch the green fleet during a baking period. If an alarm trips, SageMaker AI returns traffic to blue by itself. If not, it ends the blue fleet. You start one by passing a deployment configuration to UpdateEndpoint.

是什么

A rolling deployment replaces capacity in batches of a size you set, so it needs less spare capacity than blue/green, which briefly runs two fleets. It also rolls back on alarms. Serverless endpoints cannot use deployment guardrails.

A shadow test sends a copy of live requests to the new model and drops its answers, so you compare behaviour with no user risk. A/B testing is different, because real users get the new answers. For Lambda functions and Amazon ECS services in front of a model, AWS CodeDeploy gives canary, linear and all-at-once traffic shifting with alarm-based rollback.

要记住

  • Blue/green on SageMaker AI: all at once, canary or linear traffic shifting.
  • CloudWatch alarms watch during the baking period. A trip rolls back automatically.
  • Rolling: batches, less spare capacity. Shadow: copies traffic, users never see the answers.
  • Guardrails work for real-time and asynchronous endpoints, not serverless.

要记住

  • CodeDeploy does canary, linear and all-at-once for Lambda and ECS.

考试中

  • “Send 10 percent of traffic to the new model and roll back if errors rise” points to canary blue/green with CloudWatch alarms.
  • “Compare a new model on real traffic with no user impact” points to a shadow test.
  • “Update with the least spare capacity” points to a rolling deployment.
  • “Shift a Lambda alias gradually” points to CodeDeploy with a canary or linear configuration.