liveBook · Manning

Canary deployment

As explained in Google Anthos in Action

A canary deployment is a release strategy that exposes a new version to a small portion of traffic before expanding its availability.

A canary deployment rolls out a release to a small subset of users or servers, tests the change, and then expands it to the remaining population. The old and new service versions can run simultaneously while traffic rules control exposure. section 15.8 section 4.5.3

A progressive rollout typically proceeds by:

  • Deploying the new service version alongside the version already serving most traffic. section 4.5.3
  • Directing a predefined traffic share or user segment to the new version. section 4.5.3
  • Increasing exposure when the canary shows no problems, then moving all traffic and discarding the old version. section 4.5.3

Traffic-split canary

A service-mesh rule redirects 5% of traffic to the new release of Service A while the remaining traffic uses the established version. A user-agent rule can instead target iPhone traffic specifically. Operations can execute either change on the fly without disrupting end users. section 4.5.3

Figure 4.7 Istio canary deployment feature based on traffic
04-07

Shows an Istio canary deployment that uses traffic splitting to expose a new service release to a controlled percentage of traffic. section 4.5.3

Figure 4.8 Istio canary deployment feature based on user-agent
04-08

Shows an Istio canary deployment that selects traffic by user-agent, such as iPhone traffic. section 4.5.3

How Google Anthos in Action covers it

How deep it goes
Explains rollout stages, concurrent versions, percentage and user-agent routing, but does not detail deployment configuration.
Examples
Uses a 5% traffic split and user-agent targeting for Service A through Istio.
What it assumes
Assumes services or servers can run multiple versions and traffic rules can select users or percentages.
What you can do after
Operate progressive releases by routing selected traffic to a new version and expanding exposure after testing.
How it connects
Connects canary deployments with traffic routing, A/B testing, progressive rollout, service mesh, and CI/CD integration.

Also explained in

Compare how 7 books explain canary deployment →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.