From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Karl Denninger <karl(at)denninger(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Streaming Recovery - Automated Monitoring |
Date: | 2010-10-03 06:28:31 |
Message-ID: | AANLkTi=_q3Z8m=ojAEeGrhBY0Co5h=VEEs7sGESB3E_p@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sun, Oct 3, 2010 at 07:07, Karl Denninger <karl(at)denninger(dot)net> wrote:
> Now how do I get an arithmetic difference between the two? There will
> (usually) be a small difference between the master and slave on a busy
> system - what I want to do is query both and if the difference in their
> locations is greater than some defined size, start raising hell (e.g.
> sending SMS to people, etc)
Take a look at this code for an example:
http://munin-monitoring.org/browser/trunk/plugins/node.d/postgres_streaming_.in?rev=3905
I *think* it's complete :-)
> With Slony there was a set of system tables that would tell me how many
> unapplied changes were in the queue. From this I could determine health -
> if the number was more than some reasonably-small amount, something was
> broken and alarms were to be raised.
Yeah, streaming can't do it quite so conveniently for you, since the
view can only talk to one database at a time.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Guillaume Lelarge | 2010-10-03 06:34:56 | Re: Streaming Recovery - Automated Monitoring |
Previous Message | Karl Denninger | 2010-10-03 05:07:11 | Re: Streaming Recovery - Automated Monitoring |