Exercise failover often or it may fail when needed, post argues

Exercise failover often or it may fail when needed, post argues

A post on bencane.com opens with an old saying, "Your backups are only as good as the last time you restored them," and argues that the same applies to failover: if you do not use it often enough, it might not work when you need it.

The first example is a hypothetical warm standby environment. The application is running, infrastructure is provisioned and health checks pass, so it looks ready for traffic. It may not be. Connections to databases and caches are set up at startup and work then, but the environment may sit idle for months. Persistent database connections without suitable idle timeouts or maximum connection lifetimes could go stale without the application noticing. Dependencies can change, firewall rules can be modified and credentials can expire. Health checks may miss important problems unless they exercise the same dependencies, network paths and credentials as real traffic. Moving production traffic over might then expose faults that have gone undetected for a long time, possibly in the middle of an outage.

Active-active avoids most of those passive-environment scenarios, the author says, but spreading traffic across two or more environments does not instantly solve everything. Each environment may cope with its own share, yet after a failover the remaining capacity has to absorb much more. Planning for that load and seeing the plan work in production are different things. The author usually sees the problem in teams running three or more environments: normal failover takes them down to two, but sometimes they unexpectedly have to run on one, which might not handle the full volume.

The proposed remedy is to make failover part of normal operations, for instance by using it for changes. Where the architecture supports it, teams move traffic away from an environment, deploy and validate the release there, then move traffic back. Frequent releases make the operations team familiar with the process and give it more reason to automate, since nobody wants to run the same complicated procedure by hand every week. Over time failover becomes routine, unlike a process saved for emergencies or an occasional "exercise".

Frequent failover also forces architectural questions about data consistency and replication delay, in-flight traffic, and how long a switch takes. Teams have to solve these problems or consciously accept the trade-offs. The author adds a caveat: planned failover proves you can move traffic, but not necessarily what happens in an unexpected failure. Automated failure detection and recovery still need separate testing.

Key facts

  • An idle warm standby can pass health checks while hiding stale database connections, expired credentials, changed dependencies or modified firewall rules.
  • Active-active avoids most passive-environment problems, but the capacity left after a failover has to carry significantly more traffic.
  • The author usually sees capacity trouble in teams with three or more environments that plan to drop to two but sometimes must run on one.
  • The suggested practice is to shift traffic away with the failover mechanism, deploy and validate changes, then shift it back.
  • Planned traffic shifts do not replace separate testing of automated failure detection and recovery.

Why it matters

The argument is that a recovery path nobody uses is unproven. A standby can look healthy for months while problems build up unseen, and an outage is a bad moment to find them. The author's answer is to turn failover from an emergency procedure into a routine one, so that faults surface while the team is still in control and the platform is stronger both for everyday changes and for emergencies.

Who it affects

Teams that run a warm standby, where an idle environment may drift out of working order. Teams running active-active, which still have to check that the remaining capacity can take the extra load. The author singles out setups with three or more environments, where the plan covers falling to two but reality sometimes leaves one. Operations teams are directly involved, since they would run the procedure at each release.

How to use it

If your architecture allows it, tie failover to releases: move traffic away from an environment, deploy and validate the change, then move traffic back. Repeating this builds familiarity and creates pressure to automate. Along the way, answer three questions: what happens to data, including consistency and replication delay; what happens to in-flight traffic, whether it fails, gets retried by clients or affects users; and how long failover takes and whether that is acceptable. Check that health checks use the same dependencies, network paths and credentials as real traffic. If automated failure detection and recovery can be folded into regular testing, the author says, even better.

How solid is it

This is an engineering opinion piece that gives practical advice. It describes no specific incident, company or case study, and the warm standby scenario is hypothetical. It offers no data on failure rates, failover durations or costs. The one pointer to experience is the author's remark about what they usually see in teams with three or more environments. No particular tools or cloud providers are named, and no failover frequency is prescribed; the weekly procedure appears only to show why teams would automate.

Risks and caveats

Using failover for planned changes validates the ability to move traffic, but not necessarily the behavior during an unexpected failure. Systems that depend on automated detection and recovery need those mechanisms tested separately. The release-time method also assumes an architecture that supports it. Not every failure scenario may be possible to exercise in normal operations. The benefit the author claims for regular use is that when something breaks, traffic can often be moved back and the cause investigated.

“Finding out your failover has flaws during an emergency is the worst time. There is no fail back and figure it out.”

— The author, in the post on bencane.com