Copy-and-Replay vs Branch-at-a-Point: Two Backup Recovery Paths
A side-by-side comparison of copy-and-replay recovery and branch-at-a-point restores, showing why restore time scales with data size in one model and not the other.
Loading…
Topic
3 posts about Backups. Every summary links to the original.
See the idea
A side-by-side comparison of copy-and-replay recovery and branch-at-a-point restores, showing why restore time scales with data size in one model and not the other.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Evaluating a managed Postgres service requires checking operational control, high availability, disaster recovery, scaling, security, compatibility, migration, pricing, operations, and portability rather than relying on feature page claims. Operational scope includes who handles patching, whether minor updates are automatic with a maintenance window, and which PostgreSQL roles and parameters are restricted. High availability should use synchronous replication across availability zones with automatic failover and committed transaction guarantees, and backups must support point-in-time recovery via continuous WAL archiving with published RPO and RTO. Scaling requires separating compute from storage, supporting autoscaling, and ensuring connection pools handle reconnects, while security demands private networking and customer-managed keys. Migration should offer logical replication and change data capture rather than only dump and restore, and providers must demonstrate claims through a pilot covering failover, recovery, and data integrity tests.
On 11 October at 21:53 Malaysia time, a network port on sandbox-01, a Lenovo ThinkStation P700, hung and took down every customer VM, the sandbox API, and the web app’s only database for 2 hours 41 minutes. The Intel I218-LM port on the e1000e driver logged “Detected Hardware Unit Hang” 4,567 times while Linux kept running but sent no traffic. Because it was the server’s only connection, recovery required a drive to the data center and a power cycle. After the reboot, k3s did not start because systemd ordering cycles, present since 11 September, had dropped mount jobs; the mounts and k3s were started by hand, and the web app reached its database at 00:33. The cable was moved to a second Intel I210 port, and changes now include server-specific alerts, traffic recording, and S3 backups every six hours.
A base backup reads every byte of a live database off the same NVMe drives that serve queries. Buffered reads go through the kernel page cache, evicting warm database pages and adding a kernel copy per byte. Direct I/O skips the cache, leaving Postgres’s warm data in place, but also disables kernel readahead. On a RAID0 array, small direct reads hit only one drive, so ClickHouse Managed Postgres sizes each direct read to span the whole stripe and scales the reader count to the hardware. On a 48 vCPU box with four NVMe drives and a 467 GB database, the direct I/O backup evicted nothing, cut query latency impact by about two thirds, used about 14% less CPU, and finished in 71 seconds.
The best engineering reads, once a week.