From 1af087449ac26ed247ae9ff611a269010021bbd7 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Wed, 23 Nov 2022 08:41:22 +0200 Subject: [PATCH] Reduce max_replication_write_lag to 10Mb (#1793) --- control_plane/src/compute.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control_plane/src/compute.rs b/control_plane/src/compute.rs index 359948a8c9..1c8d86e408 100644 --- a/control_plane/src/compute.rs +++ b/control_plane/src/compute.rs @@ -343,7 +343,7 @@ impl PostgresNode { // To be able to restore database in case of pageserver node crash, safekeeper should not // remove WAL beyond this point. Too large lag can cause space exhaustion in safekeepers // (if they are not able to upload WAL to S3). - conf.append("max_replication_write_lag", "500MB"); + conf.append("max_replication_write_lag", "15MB"); conf.append("max_replication_flush_lag", "10GB"); if !self.env.safekeepers.is_empty() {