Reliabilityrecovery point objective

RPO

Definition

The recovery point objective is the target for how far back in time recovered data may be, for example "no more than 5 minutes of writes lost"; a design's actual RPO is the window of acknowledged writes not yet copied elsewhere.

In practice

With asynchronous replication, the RPO for losing the primary is roughly the replication lag at the moment of the crash, and it is largest exactly when lag spikes under load. With backups, it is the time since the last backup or, with continuous log archiving, the last shipped log segment.

An RPO of zero requires synchronous or semi-synchronous replication, which adds a round trip to every commit and can block writes when the standby is unreachable. Replicas also copy mistakes instantly, so an accidental DELETE needs backups and point-in-time recovery, whose RPO is measured separately.

Example

At 240 writes per second with 400 ms of replication lag, a primary crash loses about 100 acknowledged writes: an RPO of under half a second, unless lag spikes.