Re: Measuring replication lag time - Mailing list pgsql-general

From Stuart Bishop
Subject Re: Measuring replication lag time
Date
Msg-id CADmi=6OS7gcKLneKnvqm-yhK+-jE5D_cqtYZ9ALb+Q34LDDMLw@mail.gmail.com
Whole thread Raw
In response to Re: Measuring replication lag time  (Greg Williamson <gwilliamson39@yahoo.com>)
Responses Re: Measuring replication lag time  (Samba <saasira@gmail.com>)
List pgsql-general
On Thu, Feb 23, 2012 at 2:58 AM, Greg Williamson
<gwilliamson39@yahoo.com> wrote:
> Stuart Bishop shaped the aether to ask:
>
>> Hi.
>>
>> I need to measure how far in the past a hot standby is, async
>> streaming replication.
>
> Not sure if this will help, but we are using repmgr <https://github.com/greg2ndQuadrant/repmgr>; it sets up a
monitoringschema which we poll )see the "Monitoring and Testing" section ... study their source code some and see how
theycome up with lag times. 

Might help indeed. My existing solution already has a small daemon (I
can't always query the Slony-I sl_status view fast enough for load
balancing web requests, so I maintain a cache). But repmgr seems to
cover other work I need to do to keep ops happy so something for me to
look closer at.


--
Stuart Bishop <stuart@stuartbishop.net>
http://www.stuartbishop.net/

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Optimise PostgreSQL for fast testing
Next
From: Dmytrii Nagirniak
Date:
Subject: Re: Optimise PostgreSQL for fast testing