Re: How to speed WAL apply in destination - Mailing list pgsql-admin

From Rui DeSousa
Subject Re: How to speed WAL apply in destination
Date
Msg-id 217C4EF6-B990-4210-BD8B-6EA56A8C8248@crazybean.net
Whole thread Raw
In response to Re: How to speed WAL apply in destination  (SASIKUMAR Devaraj <sashikumard@yahoo.com>)
List pgsql-admin

On Dec 9, 2022, at 5:57 AM, SASIKUMAR Devaraj <sashikumard@yahoo.com> wrote:

During certain interval there is huge WAL file generation f3om primary around 300gb/hr which delays sync in secondary by atleast 30 mins. Other time it is normal 

I assume this is streaming replication? What’s the network configuration between the nodes? When I was replicating across the pond (high latency); I would monitor the lag and if it fell behind by several gigabytes the script would ship the WAL files in parallel to the remote WAL backup server across the pond.  It then terminated the streaming replication which would force the DR replica to pull the WAL files from its local backup server which was much faster than streaming replication (a single tcp connection) over a high latency connection.

What’s the replication configuration? Is the replica a hot standby with active queries? What’s the I/o subsystems on both systems?

pgsql-admin by date:

Previous
From: Scott Ribe
Date:
Subject: Re: How to speed WAL apply in destination
Next
From: SASIKUMAR Devaraj
Date:
Subject: Re: How to speed WAL apply in destination