pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Replication monitoring questions
2+ messages / 2 participants
[nested] [flat]

* Replication monitoring questions
@ 2013-01-17 16:20 Scott Whitney <scott@journyx.com>
  2013-01-17 17:35 ` Re: Replication monitoring questions Ray Stell <stellr@vt.edu>
  0 siblings, 1 reply; 2+ messages in thread

From: Scott Whitney @ 2013-01-17 16:20 UTC (permalink / raw)
  To: pgsql-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 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Replication monitoring questions
  2013-01-17 16:20 Replication monitoring questions Scott Whitney <scott@journyx.com>
@ 2013-01-17 17:35 ` Ray Stell <stellr@vt.edu>
  0 siblings, 0 replies; 2+ messages in thread

From: Ray Stell @ 2013-01-17 17:35 UTC (permalink / raw)
  To: Scott Whitney <swhitney@journyx.com>; +Cc: pgsql-admin


On Jan 17, 2013, at 11:20 AM, Scott Whitney wrote:
> 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.

I compare pg_controldata output from the two clusters periodically.=

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2013-01-17 17:35 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-01-17 16:20 Replication monitoring questions Scott Whitney <scott@journyx.com>
2013-01-17 17:35 ` Ray Stell <stellr@vt.edu>

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