almokhtar

almokhtar

Canary deploys that actually watch error rate, not just a timer

A standard deploy is binary: the new release passes its health check, and all traffic moves to it at once. That’s fine until the thing that breaks isn’t a crash on boot but a slow leak that only shows up under 100% of production load — by the time it’s obvious, everyone already has the bad version. A canary deploy exists specifically for that gap.

What actually happens

Turn it on under Settings → General → Deploy strategy, choose Canary, and set a canary share (1-99%): that percentage of new visitors gets the new release, running right next to the current one, not replacing it yet. A cookie keeps each visitor on whichever version they landed on first, for a day — nobody gets bounced between old and new mid-session.

From there, three settings decide how cautious the rollout is:

  • Ramp steps, an ascending list like 5, 25, 50 — each step is its own canary, watched the same way, and clearing the last one promotes to 100%. Leave it blank for a single step you promote by hand.
  • Dwell per step, in minutes — leave it blank and you promote each step yourself; set it and Railyard advances automatically once a step has run that long without tripping the next setting.
  • Roll back above a 5xx rate (%) — the part that makes this more than a traffic-splitting toggle. If a step’s error rate crosses this threshold, Railyard rolls it back on its own. Nobody has to be watching a dashboard at 2am for this to catch a bad release.

While it’s live, the deploy page shows the canary’s request count, 5xx rate and p95 latency next to the rest of the app’s — the actual comparison that decides whether to promote, not a gut feeling.

What still has to run as a standard deploy

A few cases always skip canary entirely, and knowing them up front avoids confusion later: an app’s very first deploy, a deploy during maintenance mode, a worker-only app (nothing to split traffic to), and an app with a data volume. The release command — migrations, typically — still runs once, before the canary starts, which means migrations have to work against both the old and new code at the same time for however long the canary runs. That’s not a Railyard-specific constraint; it’s the actual tradeoff every canary-deploy system makes, stated plainly instead of glossed over.

Combining it with a deploy window

Canary answers “how fast does a new release reach everyone.” A separate, composable setting — deploy windows — answers “when are deploys allowed to happen at all”:

railyard deploy-window my-app mon,tue,wed,thu,fri 09:00 17:00 America/TorontoCopy

Pushes outside the window queue and go out together when it opens; a manual deploy outside it asks first. The two features don’t interact beyond that — a canary that’s mid-ramp when a window closes keeps running exactly as configured, since ramping an already-started canary isn’t the same action as starting a new deploy.

Why this matters more once you own the servers

A canary with automatic rollback is one of the places where “self-hosted” could plausibly mean “fewer guardrails than a managed platform” — and this is the proof it doesn’t have to. The mechanism is the same regardless of who owns the box: watch real error rate against a real threshold, not a fixed timer, and let the system protect itself before a human has to.

Full reference, including scheduled deploys and deploy notes:

https://railyard.run/docs/canary-and-deploy-windows

Where Next?

Popular General Dev topics Top

AstonJ
Split from a thread about Serverless architectures. Serverless/cloud from Wikipedia: Serverless computing is a cloud computing execut...
New
KnowledgeIsPower
I had written an article about container sand-boxing. Please give comments or feedback, thanks! Sandboxing containers
New
KnowledgeIsPower
I had written an article about Migrate a K3S cluster storage from Rook to OpenEBS, with Velero Please give comment or feedback, thanks!
New
KnowledgeIsPower
I had written an article about Using mcrouter and memcached as caching layer for Thanos Store Please give comment or feedback, thanks!
New
New
avinashmeena
What are the benefits of using Linux hosting for small businesses? How does Linux hosting compare to other hosting solutions in terms of ...
New
akinihsan
Hello Do you use static code analysiss tool on your ci cd pipeline? Which one do u use and what are the benefits for you
New
createos
Curious how other teams are approaching this. Building an AI app used to mean picking a model and writing product logic. Now it means al...
New
anilyadav
Hi everyone, I’m working on a Flutter web application and I’m currently learning more about deployment and server requirements. I’m cons...
New
almokhtar
A standard deploy is binary: the new release passes its health check, and all traffic moves to it at once. That’s fine until the thing th...
New

Other popular topics Top

PragmaticBookshelf
Stop developing web apps with yesterday’s tools. Today, developers are increasingly adopting Clojure as a web-development platform. See f...
New
PragmaticBookshelf
Free and open source software is the default choice for the technologies that run our world, and it’s built and maintained by people like...
New
PragmaticBookshelf
Write Elixir tests that you can be proud of. Dive into Elixir’s test philosophy and gain mastery over the terminology and concepts that u...
New
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
AstonJ
We’ve talked about his book briefly here but it is quickly becoming obsolete - so he’s decided to create a series of 7 podcasts, the firs...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
PragmaticBookshelf
Author Spotlight Mike Riley @mriley This month, we turn the spotlight on Mike Riley, author of Portable Python Projects. Mike’s book ...
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New
pragdave
Build robust LLM-powered apps, chatbots, and agents while mastering AI engineering principles that will help you outlast the tools and th...
New