Multi-tenant SaaS Platforms — Cells, Rings & Progressive Delivery›05 · Ring-based rollouts

Lesson 05 of 16 · Releasing safely

Ring-based rollouts

Release every change cell by cell in rings: internal first, then canary cells, then broad waves, regulated and largest customers last. Define the gates between rings, how long each ring soaks, what stops a rollout automatically, and how to roll back.

Advanced → Architect
Key wordsringsprogressive rolloutdeployment wavespromotion gatessoak timebake timehalt criteriaApplicationSet RollingSyncchange freezegit revert

Every change is a risk to every tenant

With cells, a bad change no longer has to reach everyone at once. Rings order the cells by risk, and every change (application code, configuration, add-ons, infrastructure) moves through them.

A new lunch menu is tried first by the teachers, then by one class, then by half the school, and finally by the children with allergies, once everyone is sure it's safe.

Designing the rings

Ring Who Purpose
0 Internal and test tenants Catch obvious breakage with no customer impact
1 Canary cells: low-risk or opted-in tenants Real traffic, small blast radius
2 Broad shared cells, in waves Most customers, rolled out in steps
3 Regulated and largest-customer cells Highest impact; only proven changes, after the longest soak

Put the ring on each cluster as a label, so rollout order is data (see the Build an Internal Developer Platform track for the ApplicationSet).

Gates between rings

Promotion from one ring to the next needs:

  1. Health: every application in the ring is Healthy and Synced.
  2. Signals: error rate, latency and saturation within thresholds, compared with before the change (SLO burn rate is a good single signal).
  3. Soak time: a minimum time in the ring (minutes for ring 0, hours for ring 2, a day or more before ring 3).
  4. No open incidents in the ring, and no change freeze.

Automate what you can (Argo CD progressive syncs promote when apps are Healthy; a small controller or pipeline can add metric checks and soak timers). Keep a manual approval before ring 3 if the business requires it.

spec:
  strategy:
    type: RollingSync
    rollingSync:
      steps:
      - matchExpressions:
        - { key: fleet.example.io/ring, operator: In, values: [ "0" ] }
      - matchExpressions:
        - { key: fleet.example.io/ring, operator: In, values: [ "1" ] }
      - matchExpressions:
        - { key: fleet.example.io/ring, operator: In, values: [ "2" ] }
        maxUpdate: 25%
      - matchExpressions:
        - { key: fleet.example.io/ring, operator: In, values: [ "3" ] }

Halting and rolling back

  • Automatic halt: a failed gate stops promotion; nothing further is synced.
  • Roll back with git revert: the revert is a normal change and flows ring by ring, leaving an audit trail. Don't roll back by hand in the UI: auto-sync would undo it, and the record would be lost.
  • Within a cell, canary analysis (next lesson) can abort an application release in seconds, before the ring gate even matters.

What else goes through rings

Not only application releases: platform add-ons (policy engine, mesh, ingress), cluster upgrades, policy changes (in audit mode first), configuration and feature flags. The configuration push that takes down a whole platform is a classic incident that rings prevent.

Don't let urgent fixes skip the rings silently

Emergency fixes may need a faster path (shorter soaks), but they should still go through ring 0 first, and the shortcut should be explicit and logged. "Hotfix to everyone" is how one bug becomes two.

Try it

In a lab with two clusters labelled ring 0 and ring 1, enable progressive syncs and add the RollingSync strategy to an ApplicationSet. Push a change that breaks readiness. Watch ring 1 stay Waiting. Revert the change in Git and watch it recover ring by ring.

Recap

  • Order cells into rings by risk: internal, canary, broad waves, regulated and largest last.
  • Gate promotion on health, signals, soak time and incident state; automate the gates.
  • Roll back with git revert; send add-ons, upgrades, policies and configuration through the same rings.

This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.