Nuno
Nuno
All posts

Deploys That Silently Stop Your Analytics

Redirects kept working while usage metering flatlined after a deploy. Four deploy-time failures from launching redir.rocks, and how to catch them.
Vander Nunes
November 24, 2026
XInstagramYouTubeLinkedIn
Two time series after a deploy: request traffic continues while the usage event count drops to zero

The site worked. The counter did not.

redir.rocks is a redirect service I run with my co-founder. He writes the application in Elixir. I built the infrastructure, the deploys, observability and operations.

Every redirect is counted, because usage is what customers pay for. One day after a deploy, redirects kept working and the usage count stopped. Visitors were fine. Billing data was not being written.

This kind of failure is worse than an outage. An outage pages you. A flat line on a usage chart looks exactly like a quiet day.

Here are four failures I hit around deploys while getting redir.rocks ready for launch. None of them were exotic. All of them were about what happens between "old version stops" and "new version is healthy".

1. A rolling deploy and a singleton

One process in the cluster, a singleton, writes the usage events.

During a rolling deploy, the new node started while the old node was still running. The new node saw that the singleton was already claimed by the old node, so it stayed idle, as designed. Then the old node was stopped. The claim went away with it, but the new node did not take over. Redirects kept being served. Nobody was writing usage events.

The fix belongs in how the singleton is claimed after a node leaves. The broader lesson is about rolling deploys: anything that exists once in a cluster (a scheduler, a leader, a consumer) has a hand-over moment during every deploy. Test that moment, not only the steady state.

2. How to tell "no traffic" from "dead producer"

The reason this was hard to see is that zero usage is a valid state. At night, on a new product, the count may really be zero.

So I stopped trusting the chart alone and added a check that does not depend on real traffic: send a known number of requests, then count the rows. During the launch test I sent 1,000 requests and the count went up by exactly 1,000.

A synthetic check like this tells you the pipeline is alive even when nobody is using the product. If the count does not move, it is not a quiet day. Something is broken.

3. A required setting took the whole site down

The deploy tool, as it was set up then, stopped the old version before it started the new one.

Once, a new release needed an environment variable that was not set. The new version failed to start. The old version was already stopped, so the site was down.

There are two fixes, and I like having both. The deploy should not remove the old version until the new one passes a health check. And the application should check its required settings at start and fail loudly, so the problem shows in the deploy log in seconds, not in a monitoring alert minutes later.

4. The edge stopped syncing after each deploy

The edge gateway gets its configuration from the application cluster. During the October 2026 launch test I found that after each application deploy, the edge stopped syncing. The cause was how the cluster database rejoined after the deploy. Changes made after the deploy would not reach the edge.

Restarting the gateway fixed the sync, and the restart caused a 2.5-minute outage. So the recovery for a silent failure was a loud one.

The workaround was to restart the gateway after every application deploy, so it joins the new node cleanly. The lasting fix belongs in the application.

This one shows up only when a test runs long enough to include a deploy. A 10-minute load test would have missed it.

5. A bonus: the release only booted where it was built

Not a deploy-time failure in the same sense, but it surprised me. An Elixir release links against system libraries on the machine where it is built. Built on one image and run on another, it may not start at all.

On Amazon Linux 2023 the release failed with GLIBC_2.38 not found. On Ubuntu 24.04 it failed with OPENSSL_3.4.0 not found. On Debian 13 it ran.

The fix is simple: build the release on the same OS and version you run it on, or ship it in a container built from the same base image. The lesson is broader than Elixir. Anything compiled, with native libraries, has a runtime it expects.

What to check around deploys

  • List everything that exists once in the cluster. Test its hand-over during a deploy.
  • Add a synthetic check for every side effect you bill or report on: send N, count N.
  • Never stop the old version before the new one is healthy.
  • Make the application check required settings at start and exit with a clear message.
  • Include at least one deploy in every long load test.
  • Build and run on the same OS, or use containers.

If your deploys work but something quietly breaks after them, I can help find it: get in touch.