Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sm1ff-002g7v-Fd for pgsql-admin@arkaria.postgresql.org; Thu, 05 Sep 2024 01:52:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sm1fe-000vCU-0s for pgsql-admin@arkaria.postgresql.org; Thu, 05 Sep 2024 01:52:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sm1fd-000vCL-Kj for pgsql-admin@lists.postgresql.org; Thu, 05 Sep 2024 01:52:26 +0000 Received: from qs51p00im-qukt01080301.me.com ([17.57.155.20]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sm1fb-000D7u-Q3 for pgsql-admin@lists.postgresql.org; Thu, 05 Sep 2024 01:52:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1725501141; bh=/us8KyptXZOJz+vTmbr0J8kUZsu3yehTRtVNs99ZvzI=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=jYGvebYQdoBhLYm2UdTZQMI+XpxdjUXrrB2KAJERwYZKHHaq7Pg7ny3wQuLuQmnTk 2M+PF+H+bEmO/wVdAMqqWQezam8a2bEmOssiAKwWhoUfsClMg9Ajk0SbbDO8eJWjan MjJNPj4pS0iHiVw1YfQrVd5NOCjUAenAIjbjXwJTmxsL9KWkjIHVrsFB7iEFv5EWZf RJ/fle46EnnuhMvogJoKG/B6LB+CQxFihegxuvuKomae2FaHW+JOegSMmP33pTDFbc Dt1/m20cK490DKkX/KEsFkoTaIRYEaQxzbDYxFtCxOu3RsdDldVDuJS85jTThDaUy8 P5+C0svSFgCRA== Received: from smtpclient.apple (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01080301.me.com (Postfix) with ESMTPSA id 991345F00109; Thu, 5 Sep 2024 01:52:19 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: Parallelize WAL Sender and WAL receiver From: Rui DeSousa In-Reply-To: Date: Wed, 4 Sep 2024 21:52:01 -0400 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Karthik Yellapragada X-Mailer: Apple Mail (2.3696.120.41.1.10) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Sep 4, 2024, at 9:03 PM, Karthik Yellapragada = wrote: >=20 > Hello all, >=20 > I frequently face the problem of wals generated faster than the wals = transferred and applied. >=20 > Is there a way to speed up the process? So I don=E2=80=99t accumulate = a lot of WALs at the primary? >=20 > Regards, > Karthik. What do you mean by parallelized WAL sender? Do you have many replicas = connecting to the primary? Have you tried cascading replication? What=E2=80=99s the network between the systems? Is a WAN with high = latency? Can the replica pull from the WAL file from an archive? For a = high latency networks like New York to London; I would terminate the WAL = receiver via a script if replication exceeded an acceptable delay to = ensure SLA where met. It is faster to pull the WAL files from the = local archive which where already replicated to London than streaming = replication over a high latency WAN. After It catches up, it will = reconnect to streaming replication. =20