Re: Syncrep and improving latency due to WAL throttling

Alvaro Herrera <alvherre@alvh.no-ip.org>

From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, Jakub Wartak <jakub.wartak@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Tomas Vondra <tomas.vondra@enterprisedb.com>
Date: 2023-01-27T08:20:46Z
Lists: pgsql-hackers
On 2023-Jan-27, Bharath Rupireddy wrote:

> Looking at the patch, the feature, in its current shape, focuses on
> improving replication lag (by throttling WAL on the primary) only when
> synchronous replication is enabled. Why is that? Why can't we design
> it for replication in general (async, sync, and logical replication)?
> 
> Keeping replication lag under check enables one to provide a better
> RPO guarantee

Hmm, but you can already do that by tuning walwriter, no?

-- 
Álvaro Herrera