RPO and RTO
- Docker & Kubernetes course
- Expert
- Lesson 41/47
- 4 min
Learn recovery point and time objective concepts.
RPO and RTO
A disaster plan has two key targets:
- RPO (Recovery Point Objective): the maximum acceptable period of data loss. A nightly backup makes the RPO 24 hours; an hourly backup 1 hour.
- RTO (Recovery Time Objective): the longest acceptable time for the service to be working again.
last backup disaster service back
───────────────┼──────────────────┼───────────────────────────┼──────►
└──── RPO ─────────┘└────────── RTO ────────────┘Targets are chosen according to business needs: a payment system wants minutes, an internal wiki can live with hours.
Meeting the targets
To lower RPO: frequent backups, continuous WAL archiving in the database, or replication to another region. To lower RTO: fast rebuild with GitOps, a ready second cluster (warm standby), automatic DNS failover and regular drills.
service RPO RTO method
odeme 1 min 15 min database replication + warm standby
magaza 1 hour 1 hour hourly Velero + GitOps
wiki 24 hours 1 day nightly backupPractice Hourly backup
To lower the RPO to 1 hour, write two commands: create a Velero schedule named saatlik that backs up magaza on the hour ("0 * * * *") and keeps it for 48 hours; then trigger a backup from the schedule right away (velero backup create --from-schedule saatlik).
Starter code
# buraya yazSample solution
velero schedule create saatlik --schedule="0 * * * *" --include-namespaces magaza --ttl 48h
velero backup create --from-schedule saatlikExpected output
Schedule "saatlik" created successfully. Creating backup from schedule, all other filters are ignored. Backup request "saatlik-20261103113005" submitted successfully.
Questions and answers
Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.
1 If backups are taken every 6 hours, what is the worst-case RPO?
- 1 hour
- 24 hours
- 0
- 6 hours Correct answer
Explanation: If disaster strikes just before the next backup, the last 6 hours are lost.
2 The longest accepted time for the service to work again.
Target abbreviation: ____
Target abbreviation: RTO
Explanation: RTO is time, RPO is data loss.
3 Match.
| Term | Meaning |
|---|---|
RPO |
Data loss |
RTO |
Downtime |
warm standby |
Ready second cluster |
WAL archive |
Continuous database backup |