Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Correct and clarify wal-g backup documentation.

Alex Vandiver18230fcd99a0
diff --git a/docs/production/deployment.md b/docs/production/deployment.md
index 1d7f7ef467e..3312820dd0a 100644
--- a/docs/production/deployment.md
+++ b/docs/production/deployment.md
@@ -553,8 +553,8 @@ Zulip's configuration allows for [warm standby database
replicas][warm-standby] as a disaster recovery solution; see the
linked PostgreSQL documentation for details on this type of
deployment. Zulip's configuration builds on top of `wal-g`, our
-[database backup solution][wal-g], and thus requires that it be
-configured for the primary and all secondary warm standby replicas.
+[streaming database backup solution][wal-g], and thus requires that it
+be configured for the primary and all secondary warm standby replicas.
In addition to having `wal-g` backups configured, warm standby
replicas should configure the hostname of their primary replica, and
diff --git a/docs/production/export-and-import.md b/docs/production/export-and-import.md
index 2a0fc64cf7d..c9d5a7f97c7 100644
--- a/docs/production/export-and-import.md
+++ b/docs/production/export-and-import.md
@@ -437,7 +437,8 @@ Once that's done, you can simply re-run the import process.
The [Zulip-specific backup tool documented above](#backups) is perfect
for an all-in-one backup solution, and can be used for nightly
backups. For administrators wanting continuous point-in-time backups,
-Zulip has built-in support for taking daily incremental backups using
+Zulip has built-in support for taking daily backup snapshots along
+with [streaming write-ahead log (WAL)][wal] backups using
[wal-g](https://github.com/wal-g/wal-g) and storing them in Amazon S3.
By default, these backups are stored for 30 days.
@@ -460,11 +461,20 @@ s3_backups_bucket = # name of S3 backup bucket
1. Run `/home/zulip/deployments/current/scripts/zulip-puppet-apply`.
Daily full-database backups will be taken at 0200 UTC, and every WAL
-log will be written to S3 as it is saved by PostgreSQL; by default,
-this happens every 5 minutes, or every 1G, whichever happens first.
+archive file will be written to S3 as it is saved by PostgreSQL; these
+are written every 16KiB of the WAL. This means that if there are
+periods of slow activity, it may be minutes before the backup is saved
+into S3 -- see [`archive_timeout`][archive-timout] for how to set an
+upper bound on this. On an active Zulip server, this also means the
+Zulip server will be regularly sending PutObject requests to S3,
+possibly thousands of times per day.
+
If you need always-current backup availability, Zulip also has
[built-in database replication support](deployment.md#postgresql-warm-standby).
You can (and should) monitor that backups are running regularly via
the Nagios plugin installed into
`/usr/lib/nagios/plugins/zulip_postgresql_backups/check_postgresql_backup`.
+
+[wal]: https://www.postgresql.org/docs/current/wal-intro.html
+[archive-timeout]: https://www.postgresql.org/docs/current/runtime-config-wal.html#GUC-ARCHIVE-TIMEOUT