Lesson 09 of 16 · Edge, isolation and cost
Operating a fleet of cells
Run tens of cells without tens of times the work: observability that rolls up per cell and per tenant without exploding cardinality, disaster recovery designed and tested per cell, upgrades by building new cells rather than patching old ones, and the automation that keeps it manageable.
Operating many cells
Ten cells must not mean ten times the toil. The answer is the same as for any fleet: everything from code, every cell identical except parameters, observability and automation built for the fleet.
A head teacher with twenty classrooms doesn't visit each one every hour. A dashboard on the wall shows every room green or red, each room follows the same routine, and fire drills happen in every room on schedule.
Observability that rolls up
- Every signal carries the cell (and ring): copy cluster labels into metrics (external labels), logs and traces. Fleet dashboards then show every cell side by side, and a bad release in one ring stands out.
- Per-tenant visibility, carefully: tenant ID in logs and traces always; in metrics only where cardinality allows (aggregated request counts or error rates per tenant, or top-N tenants).
- SLOs per cell and per tier: an outage in one cell is a real outage for its tenants even if the fleet average looks fine.
- Central query, local storage: each cell keeps its own data (it must work alone); a global layer queries across cells (federation or a central long-term store such as Thanos or Mimir).
Disaster recovery per cell
Decide recovery targets per tenant tier (RTO: how long to recover; RPO: how much data may be lost), then design per cell:
- backups of every data store, copied to another region or account, with regular automated restore tests;
- infrastructure and applications rebuildable from Git (the cell itself is cattle);
- for tiers that need it, a standby cell in another region with replicated data and a tested failover (map flip);
- runbooks per failure: cell database lost, cell cluster lost, region lost.
Run game days: pick a cell, simulate the failure, measure actual recovery time and data loss, fix what was slow.
Upgrades by replacement
Because cells are built from code and tenants can move (lesson 4), large or risky changes (a Kubernetes minor upgrade, a new network design, a new database version) can be done next to the running cell:
1. Build cell 7b on the new version (same parameters as cell 7).
2. Move a few internal tenants, then batches of real tenants (rate-limited moves).
3. Watch each batch; move back if needed.
4. When cell 7 is empty, delete it.
In-place upgrades remain fine for routine patch releases; replacement is the safer path for big jumps and gives you a clean way back.
Automation you need
- Cell creation as one pipeline run (accounts, network, cluster, add-ons, registration with labels, smoke tests).
- Placement and moves as workflows (lessons 2 and 4).
- Fleet-wide changes through GitOps rings (lesson 5).
- Fleet audits: version skew, add-on versions, policy coverage, certificate expiry, across every cell, in one report.
Try it
In a two-cluster lab with Prometheus in each, set external_labels: { cell: <name> } and build one dashboard panel showing request rate per cell. Then write the runbook headings for "cell database lost" with your RTO and RPO targets, and list the commands you would run at each step.
Recap
- Every signal carries the cell and ring; tenant detail goes in logs, traces and aggregated metrics.
- Design and test disaster recovery per cell against tier targets; practise with game days.
- Upgrade big changes by building a new cell and moving tenants; automate creation, moves, rollouts and audits.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.