Catalogue / gitlab-2019-delayed-replication

GitLab.com keeps a PostgreSQL replica eight hours behind production and used it to restore an accidentally deleted label

GitLab, 2019. GitLab.com PostgreSQL disaster recovery.

Organisation
GitLab
Evidence
Reported from production
Source
How we used delayed replication for disaster recovery with PostgreSQL

GitLab blog, published 2019-02-13

Records

Decision#d1

Keep a replica eight hours behind, fed from the WAL archive, to recover from accidental data loss

Failure#f1

A label deleted by a user on GitLab.com took its links to issues and merge requests with it

Decision#d2

Keep cold backups for point-in-time recovery even with a delayed replica in place

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.