From: Scott Whitney <scott@journyx.com>
To: pgsql-admin@postgresql.org
Subject: Replication monitoring questions
Date: Thu, 17 Jan 2013 10:20:17 -0600 (CST)
Message-ID: <18871234.487716.1358439617072.JavaMail.root@mail.int.journyx.com> (raw)
In-Reply-To: <25940786.487525.1358439150642.JavaMail.root@mail.int.journyx.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
I've got replication setup (streaming replication) between two 9.2.2 clusters. Everything went just fine on that, and it's working as expected.
Now, obviously, I'll know if my primary goes down. I just monitor him as usual.
How do I tell whether the standby has gone out of sync for whatever reason?
Obviously, I can monitor this:
ps -elf | grep "wal receiver"
but is there a situation in which the wal receiver is running, but the replication is not working, or there are errors? I know about the replay/receive xlog locations, but those can be off due to lag, of course.
What I want to know is whether there's a situation in which my standby is running, the receiver process is running, but "something" is wrong.
Sorry this isn't more definite. I'm not quite sure what I'm looking for.
Thanks,
Scott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott@journyx.com
Subject: Re: Replication monitoring questions
In-Reply-To: <18871234.487716.1358439617072.JavaMail.root@mail.int.journyx.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox