IT Infrastructure & Cloud
Standby Servers and Failover: Keeping Applications Running When the Primary Server Fails
A standby server is only useful when the switchover has been planned and tested. This guide covers setting RTO and RPO, four standby server patterns, the components that must be prepared, and how to test failover.
SEO and Content Specialist
8 min read
Short answer: failover is switching a service from the primary server to a standby server when the primary fails. The right pattern is decided by two numbers: RTO, how long the service may stop, and RPO, how much recent data may be lost. The options range from backup and restore, pilot light, and warm standby up to active-active, each faster but more expensive and complex. Whatever the pattern, failover must be tested regularly, because a recovery path that is never exercised rarely works when it is needed.
Many companies only think about a standby server after their main application has been down for half a day. The usual question is “do we need a second server?”, while what matters more is how long the business can wait and how much data it can afford to lose. This guide looks at company server failover from the decision side: setting recovery targets, choosing a standby server pattern, preparing the components that are often forgotten, and testing the switchover.
What is failover, and how is it different from backup?
Failover is the process of moving a service to a recovery location or server when the primary location can no longer run it. A backup is a copy of data. The two complement each other, but neither replaces the other.
A backup answers “is the data still there”. Failover answers “how quickly can the service be used again”. A standby server without recent data is useless, and backup data without a server ready to run it means recovery takes a long time. How to store backups that survive different kinds of failure is covered in The 3-2-1 Backup Strategy.
One point is often misunderstood: replicating data to a standby server is not the same as backing it up. The AWS Well-Architected guidance notes that replication protects against some types of disaster, but not against data corruption or deletion, because the bad change is copied too. That is why the copy at the recovery site still needs point-in-time backups.
Start with RTO, RPO, and MTD
The NIST SP 800-34 Rev. 1 contingency planning guide uses three terms that form the basis for choosing a standby server:
| Term | NIST SP 800-34 definition (summarised) | Question for the business |
|---|---|---|
| MTD (Maximum Tolerable Downtime) | How long a business process can be disrupted before causing significant harm to the organisation | When does a disruption start to cause serious damage? |
| RTO (Recovery Time Objective) | How long system components can stay in the recovery phase before negatively affecting the business process | How many hours or minutes until the application must run again? |
| RPO (Recovery Point Objective) | The point in time to which data must be recovered after an outage | How many minutes or hours of recent data may be lost? |
NIST states that the RTO normally has to be shorter than the MTD, because after the system is recovered there is still time needed to reprocess data. The RPO is not counted as part of the MTD; it measures how much data loss can be tolerated.
These numbers are set per application, not as one number for the whole company. A point-of-sale system or a public service may demand an RTO in minutes, while a monthly reporting application may be fine recovering within a day. The uptime figure written in a contract should also be read together with the RTO; how to calculate it is in What Is Uptime and How to Calculate It.
Four standby server patterns
The AWS Well-Architected Reliability Pillar divides disaster recovery strategies into four, ordered from lowest to highest cost and complexity, and from longest to shortest RTO and RPO. The figures in the table are the ranges from that guidance for workloads on AWS, not a promise for every environment.
| Pattern | What sits at the recovery site | RPO | RTO |
|---|---|---|---|
| Backup and restore | Backup data only; servers and applications are built during the disaster | Hours | 24 hours or less |
| Pilot light | Data replicated and core infrastructure ready; application servers not yet running | Minutes | Tens of minutes |
| Warm standby | A full, scaled-down copy that is always running | Seconds | Minutes |
| Multi-site active-active | Every site serves traffic at the same time | Near zero | Potentially zero |
The difference between pilot light and warm standby, according to that guidance: pilot light cannot serve requests until additional action is taken, while warm standby can serve immediately at reduced capacity and is then scaled up. A warm standby run at full capacity is called hot standby.
AWS also stresses not to make a strategy stricter than needed, because the cost rises with it. Active-active is described as the most operationally complex pattern, partly because writes to the same data at two sites must be prevented or handled.
The same concepts apply outside the cloud. NIST SP 800-34 distinguishes a cold site (power and space ready, no computer equipment), a warm site (partly equipped), and a hot site (a fully equipped facility with hardware and software). The example table in that document pairs systems with a high availability impact with disk replication and a hot site, while low-impact systems only need backups and a cold site.
Components that must be prepared too
A second server is only one part. Failover only works when these components are also ready:
- Data. Decide how data reaches the recovery site: periodic backups, database replication, or both. For patterns other than backup and restore, a replica database usually has to be promoted to primary during failover.
- Configuration and infrastructure. AWS recommends infrastructure as code so the recovery environment can be rebuilt quickly and identically. Configuration that only lives in one person’s head is a single point of failure.
- Traffic path. Users have to be directed to the new site, for example through DNS, a load balancer, or a reverse proxy. This choice decides how long the switchover actually takes from the user’s side.
- The decision to trigger failover. According to AWS, automatic failover based on health checks should be used with caution, because a false alarm can cause downtime and data loss. That is why human-triggered failover is often chosen, with its steps still automated so triggering takes a single action.
- A plan to return (failback). After the primary server recovers, data from the recovery site must be synchronised back before traffic is returned. AWS names restoring data consistency as the main challenge at this stage.
- A playbook. All failover and failback steps are written in a playbook that the whole team can access and that is reviewed periodically.
Testing failover regularly
Failover that has never been tested is an assumption. AWS Well-Architected recommends regularly testing failover to the recovery site to verify that it works and that RTO and RPO are met, and lists “never exercising failovers in production” as an anti-pattern. The guidance gives the example of standby capacity that was once enough but can no longer handle the load when it is finally used. NIST SP 800-34 requires recovery capabilities and personnel to be tested annually for US federal systems.
A useful failover test records three things: the time from the decision until the service is back (compared with the RTO), the latest data available after the switch (compared with the RPO), and the steps in the playbook that turned out to be wrong or missing. Testing backup restores, the basis of the simplest pattern, is covered in Backup Restore Testing.
Company server failover checklist
- List the applications and set the MTD, RTO, and RPO for each, together with the process owner.
- Choose a standby server pattern per application; do not use the most expensive pattern for everything.
- Make sure there are point-in-time backups, separate from replication.
- Keep the recovery environment configuration as code or documentation that can be repeated.
- Decide the traffic switchover path and who is authorised to trigger failover.
- Write a failover and failback playbook, and review it every time the system changes.
- Run scheduled failover tests and record the time and data actually achieved.
- Monitor the health of the recovery site like the primary site, including its capacity.
How Legia approaches it
In the Cloud Migration & Architecture service, Legia starts with a readiness assessment that maps the running systems and the dependencies between their components, then prepares a placement design that covers environment separation, network paths, access rights, encryption, backups, and access logs. The cloud environment is built with backups and monitoring in place, and the migration runs in stages alongside the old system, with a plan to roll back to the previous state for every stage. For mid-sized workloads, the whole process usually takes 2 to 4 months. The cost of the work is based on the number of workloads, data size, number of environments, and the need to run alongside the old system, while the cloud bill is paid directly to the provider. Other services in this pillar are on the IT Infrastructure & Cloud page.
Frequently asked questions
Is a daily backup enough as a recovery plan?
It is enough if that application’s RPO is one day and its RTO can wait while servers and applications are rebuilt. For applications that may not stop for more than a few hours, backups alone are usually too slow, and a pattern with a server already prepared is needed.
Should failover be automatic?
Not always. Automatic failover speeds up the switch, but a false alarm can move the service unnecessarily and cause data loss. Many teams choose a manual trigger with automated steps, so the decision stays with a person and the execution is fast.
Do we have to move to the cloud to have a standby server?
No. The recovery site can be a second server room, another data centre, or the cloud. The cloud makes patterns such as pilot light easier because capacity can be switched on when needed, but the decision still comes back to the RTO, RPO, and cost of each option.
How often should failover be tested?
The schedule depends on how often the system changes and how critical the application is. NIST SP 800-34 requires annual testing for US federal systems as a minimum. After a major change such as a migration or a database replacement, a retest should not wait for the next scheduled one.
Sources
- NIST SP 800-34 Rev. 1, Contingency Planning Guide for Federal Information Systemscsrc.nist.gov
- NIST SP 800-34 Rev. 1 (PDF)nvlpubs.nist.gov
- NIST CSRC Glossary, Recovery Time Objectivecsrc.nist.gov
- NIST CSRC Glossary, Recovery Point Objectivecsrc.nist.gov
- NIST CSRC Glossary, Maximum Tolerable Downtimecsrc.nist.gov
- AWS Well-Architected Reliability Pillar, REL13-BP02 Use defined recovery strategiesdocs.aws.amazon.com
- AWS Well-Architected Reliability Pillar, REL13-BP03 Test disaster recovery implementationdocs.aws.amazon.com
- AWS, Disaster recovery options in the clouddocs.aws.amazon.com

