Commit 5061ad9
Don't hold walproposer WAL in memory (#141)
WAL is no longer in memory to prevent OOM in the compute. Removed in-memory queue because it's not needed anymore. When streaming, WAL is now read directly from disk. Every safekeeper has a separate XLogReader. walproposer will now read as much WAL as it can for a single AppendRequest message, it can help with recovering lagging safekeepers. Because Recovery needs to save WAL for streaming, now walproposer can write WAL to disk and `--sync-safekeepers` mode will create pg_wal directory if needed. Replication slot `restart_lsn` is now synced with `truncate_lsn` to prevent truncation of disk WAL until needed.1 parent 5562e60 commit 5061ad9
File tree
4 files changed
+323
-276
lines changed- src
- backend/replication
- include/replication
4 files changed
+323
-276
lines changed
0 commit comments