Re: Check Replication lag

2021-10-11 Thread Pawan Sharma
through AWS S3 WAL shipping and replaying. So we can easily check Patroni replica (Replica1) lag using the patronictl list command. but I am looking how I can check replication lag of Replica 2 which is configured through AWS. As I have checked with above query I am getting same response from both the

Re: Check Replication lag

2021-10-11 Thread hubert depesz lubaczewski
On Mon, Oct 11, 2021 at 05:58:03PM +0530, Pawan Sharma wrote: > Is there a way to monitor the replication lag, where replica nodes are > configured through aws s3. You can check it on replica, by issuing: select now() - pg_last_xact_replay_timestamp(); and it will show you, more or less, what is

Check Replication lag

2021-10-11 Thread Pawan Sharma
Hello Team, Is there a way to monitor the replication lag, where replica nodes are configured through aws s3. Is not in a synced replica setup where master node will push the wal files to aws s3 and we are taking and replaying those wal files on a replica node. -Pawan

Re: [EXTERNAL] RE: PostgreSQL-12 replication. Check replication lag

2020-08-05 Thread Michael Paquier
On Wed, Aug 05, 2020 at 06:36:15PM +, Mariya Rampurawala wrote: > What I want to understand is that, in case of replication link > failure, there will still be inserts happening at the master > node. In that case, how will the slave know if it is up-to-date? It cannot do that by itself, which

Re: Check replication lag

2020-08-05 Thread Thomas Munro
On Thu, Aug 6, 2020 at 7:02 AM Sreejith P wrote: > IN SYNC mode of replication what would be the impact on Master DB server in > terms of over all performance ? The pg_stat_replication columns write_lag, flush_lag and replay_lag are designed tell you how long to expect commits to take for synch

Re: [EXTERNAL] RE: PostgreSQL-12 replication. Check replication lag

2020-08-05 Thread Mariya Rampurawala
quot;pgsql-gene...@postgresql.org" Subject: [EXTERNAL] RE: PostgreSQL-12 replication. Check replication lag Hi, You could achieve that with a combination of those functions and querying the pg_stat_replication on either side of your setup. Regards, [Fuji Xerox Australia] Nawaz Ahmed Da

Check replication lag

2020-08-05 Thread Sreejith P
Hi, Am using SELECT (now() - pg_last_xact_replay_timestamp()) < '1’) min for identifying replication lag. Is there any better option available in postgres 10. IN SYNC mode of replication what would be the impact on Master DB server in terms of over all performance ? Thanks Sreejith. --

RE: PostgreSQL-12 replication. Check replication lag

2020-08-05 Thread Ahmed, Nawaz (Fuji Xerox Australia)
2020 1:23 AM To: pgsql-gene...@postgresql.org Subject: PostgreSQL-12 replication. Check replication lag Hi, I am working on providing HA for replication, using automation scripts. My set up consists of two nodes, Master and Slave. When master fails, The slave is promoted to master. In case of sync rep

PostgreSQL-12 replication. Check replication lag

2020-08-04 Thread Mariya Rampurawala
Hi, I am working on providing HA for replication, using automation scripts. My set up consists of two nodes, Master and Slave. When master fails, The slave is promoted to master. In case of sync replication, we do not check if the data is up-to-date on slave. But in case of async replication, ho

Check Replication lag status

2020-07-02 Thread Brajendra Pratap Singh
Hi, If my primary postgresql database will crash and there will be some lag between primary and standby database then how to findout from standby side that till what duration data will be available on standby postgresql database? Thanks, Brajendra