Cells · wrap-up
Cheat sheet & self-check
Every command from this section on one page.
Cell design rules
No cross-cell calls on the request path | A cell serves its tenants with only its own components |
Thin global layer | Routing, identity, tenant directory: small, simple, highly available |
Static stability | Cells keep serving if the global control plane is down |
Same code everywhere | Cells differ by parameters, never by forks |
Cells are cattle | Built from code, replaceable, added when needed |
Limits to measure per cell
Database | Write IOPS, storage, max connections, replication lag under load |
Messaging | Partitions per broker, throughput, consumer lag |
Kubernetes | Nodes, pods, API server latency, etcd size, pod IPs per subnet |
Cloud account | Load balancers, ENIs/IPs, instance and KMS request quotas |
Edge and services | Requests per second, connection pools, cache memory |
Blast radius | Max tenants, max revenue or max top-tier customers per cell |
Ways to identify the tenant
Subdomain: acme.app.example.com | Easy to route on at the edge; visible to users |
Token claim: tenant=acme | Works for APIs; needs token parsing at the router |
Path prefix: /t/acme/… | Simple, but leaks into every URL |
Dedicated hostname per cell | Clients told which cell to use (after a lookup) |
Move checklist
1 provision | Tenant config, schema and storage ready in the target cell |
2 copy | Bulk copy of the tenant's data (database rows, objects, search index) |
3 stream | Change data capture from source to target until lag ≈ 0 |
4 pause | Short write pause for this tenant only; drain in-flight writes |
5 flip | Update the tenant → cell map; routers refresh |
6 verify | Row counts, checksums, smoke tests as the tenant |
7 keep | Source read-only for N days as the rollback point, then clean up |