In practice / Backup operations
Failover, RTO and RPO: how quickly will your company get back into operation?
Backup, replication and failover solve different problems. How do you determine acceptable downtime and data loss, and verify the recovery of a website or internal system?
The question "do we have a backup?" is only the beginning. A company needs to know how much time it can lose, how much data it can afford to restore and which functions must keep running during a problem. The technical solution is designed from these answers.
RTO and RPO in plain language
RTO is the target maximum acceptable time from a service interruption to its restoration. RPO expresses the acceptable period of data the company can lose during recovery. Both values are based on the needs of the specific organisation. AWS Well-Architected definitions.
A company can set a goal of restoring orders within one hour and accept a loss of at most fifteen minutes of new data. Only then is it verified whether its infrastructure and procedures can meet these goals.
Backup, replication and failover
Backup
Keeps a restorable state of data or a system. It needs appropriate separation, history and testing of readability and restore.
Replication
Transfers changes to another environment. On its own, it does not prevent the transfer of a faulty change or corrupted data.
Failover
Switches the service to a prepared standby operation. It requires data, capacity, access and a working decision procedure.
These mechanisms are combined according to risks and budget. In the case of an attack, it is also important to restore a trusted environment and remove the cause, not just quickly start another copy of it.
What can prevent a quick failover
- The backup database does not contain the required state or lacks adequate capacity.
- Both environments share a broken identity service, DNS or control service.
- Administrator access or a securely stored recovery key is missing.
- It has not been agreed who can declare an incident and start the recovery.
- After the return, payments, reservations or integration jobs are wrongly repeated.
Test the whole procedure, not just a server start
In its recommendations, AWS emphasises regular failover testing and verification of recovery objectives. It also warns about capacity and assumptions that may not hold during a real outage. Recommendations for recovery testing.
Plan the test in advance according to the risk, with authorised people and agreed safeguards. Include detection, decision, access, start-up, functional verification and the return to normal mode. Record the time and any obstacles.
Ordering must work after recovery too
For an e-shop, verify sign-in, products, payments, shipping, stock and confirmations. For an internal system, try a real work task. After failover, you need to know where new data is created and how it will later be reconciled.
The result should be a record: what was restored, how long it took, with what data state and what still did not work. Only on that basis can the plan be sensibly improved.
We can help name critical services, agree RTO and RPO, design backup procedures and carry out a test within the agreed scope. The goal is a verifiable procedure for both people and technology.
Sources and further reading
The links lead to the original announcements, reports and documentation the article is based on.