Glossary

Canary Deployment

Release to a few users, watch the numbers, then release to everyone. Named after the canary miners carried underground: if it stops singing, you pull back before anyone else is harmed.

General definition

Canary Deployment is a progressive release pattern. The new version runs next to the current one and receives a small slice of production traffic, often 1 to 5 percent, chosen by random share, by user cohort, by region or by an internal-users-first rule. Automated checks compare the canary with the baseline on error rate, latency percentiles, saturation and business signals such as sign-in success. If the canary holds, the share steps up (10, 25, 50, 100 percent); if it degrades, traffic shifts back to the old version, which is still running, so rollback is a routing change rather than a redeploy.

The pattern is usually contrasted with blue-green deployment, which keeps two full environments and switches all traffic at once. Blue-green gives an instant, clean cutover and an equally instant rollback, but exposes every user to a defect at the same moment and doubles the infrastructure during the switch. A canary limits the blast radius and produces real production evidence before the full rollout, at the cost of running two versions side by side for longer, which means database schemas, message formats and APIs must stay compatible across both.

A good canary needs four things:

  • Metric gates defined before the release: which SLO indicators to compare, what difference counts as failure and how long to observe (minutes for crashes, hours for memory leaks)
  • Traffic control that can split by percentage or cohort: a load balancer, a service mesh or a feature flag
  • Observability that labels every metric and log with the version, so the comparison is honest
  • Automation that promotes or rolls back without a human watching a dashboard; tools such as Argo Rollouts and Flagger do this on Kubernetes

Chat servers add two wrinkles. Users hold long-lived connections, so a canary must drain them gracefully: stop accepting new connections on the old nodes, let clients reconnect to the new ones over time and avoid a reconnection storm that looks like an outage. And mobile clients update slowly, so a server canary is really a compatibility test of the new server against every client version in the field. Load testing before the canary and horizontal scaling headroom during it keep a bad step from becoming a capacity event, which is the same discipline that delivers high availability on an ordinary day.

Need full control of the stack? Ethora runs as a self-hosted chat server on premise, in your own cloud or from AWS Marketplace.

In the Ethora ecosystem

Ethora ships monthly calendar-versioned releases (26.09, 26.10 and so on), and the server runs as several API instances and an ejabberd cluster behind a load balancer, which is the shape a canary needs: a new version can take one node while the rest keep serving. On the managed cloud, rolling those releases out and watching the metrics is Ethora’s job. On a dedicated or self-hosted deployment the stack includes Grafana and Prometheus, so your team can set the same gates on connection counts, message throughput and error rates and widen the rollout on evidence.

Because mobile apps built on the Chat SDK update at the pace of app stores, the release notes on the blog call out anything that needs a client update. Read them before the canary, and treat the first days after a server upgrade as the canary window for your own apps, with uptime and error dashboards split by app version.

Get started

Run chat and AI on servers you control

An open-source chat server on premise, in your own cloud or from AWS Marketplace, with an enterprise SLA.

Free tier available Enterprise SLA No vendor lock-in