Replication delay - Mailing list pgsql-general

From ascot.moss@gmail.com
Subject Replication delay
Date
Msg-id 942DF7FF-967F-44FD-ADD1-4B6FBDAA8A0C@gmail.com
Whole thread Raw
In response to Re: Postgres 9.3 beta log  (Bruce Momjian <bruce@momjian.us>)
Responses replication server: LOG: invalid magic number 0000 in log file 169, segment 77, offset 4325376  ("ascot.moss@gmail.com" <ascot.moss@gmail.com>)
Re: Replication delay  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-general
Hi,

I have a pair of PG servers, a master and a replica, all read-write queries are handled by the master, read-only ones
areby the replica.   

From time to time the replica itself is too busy, all read-only queries will get  inconsistent results because of
replicationlag,  sometimes it can be longer than 6 minutes.  I am thinking to add multiple replicas to off-load
read-onlyqueries, can you please suggest a way to monitor and failover the read-only query when the replication lag in
areplica is more than 5 minutes? 

regards

pgsql-general by date:

Previous
From: Stefan Kaltenbrunner
Date:
Subject: Re: Postgres 9.3 beta log
Next
From: Bruce Momjian
Date:
Subject: Re: Postgres 9.3 beta log