NewsCrawler.org

Use failover often so it works when it is needed

Use failover often so it works when it is needed
Image: news.hada.io

The author argues that including failover[1] in routine operations exposes problems that would otherwise appear only during an emergency. Failover means moving traffic to another environment when a failure occurs. Just as backups are trusted only after a restore test, failover may not work when needed if it is rarely used.

A warm standby[2] can pass a health check[3] and still fail to handle real traffic after a long idle period. Database connections may become invalid, credentials may expire, and dependencies or firewall rules may change. Active-active[4] avoids many standby problems, but it does not guarantee that the remaining environment can handle the full load after a failover. Health checks must use the same dependencies, network paths, and credentials as real traffic.

If the architecture supports it, failover can be part of normal changes: traffic is moved away from a target environment, the change is deployed and verified, and then traffic is moved back. Repeating this helps the operations team learn the procedure and encourages automation. However, a planned switch does not prove how the system behaves during an unexpected failure, so automatic failure detection and recovery should be tested separately.

Read the original bencane.comDiscussion on GeekNews

Discussion

Commenters mostly agree that code which runs rarely tends to break. Several describe regular practice: one team fails over to another data center every week, and another does rolling reboots and tests power-loss recovery. One commenter warns that a process that works 98% of the time can lead people to drop their safeguards.

Sources

Published: First seen: Читать по-русски

Open as a page