Re: Streaming replication status - Mailing list pgsql-hackers

From Greg Smith
Subject Re: Streaming replication status
Date
Msg-id 4B4CFA91.4050005@2ndquadrant.com
Whole thread Raw
In response to Re: Streaming replication status  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Streaming replication status  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Streaming replication status  (Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>)
Re: Streaming replication status  (Josh Berkus <josh@agliodbs.com>)
Re: Streaming replication status  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-hackers
Bruce Momjian wrote:
> Right, so what is the risk of shipping without any fancy monitoring?
>   

You can monitor the code right now by watching the output shown in the 
ps display and by trolling the database logs.  If I had to I could build 
a whole monitoring system out of those components, it would just be very 
fragile.  I'd rather see one or two very basic bits of internals exposed 
beyond those to reduce that effort.  I think it's a stretch to say that 
request represents a design change; a couple of UDFs to expose some 
internals is all I think it would take to dramatically drop the amount 
of process/log scraping required here to support a SR system.

I guess the slightly more ambitious performance monitoring bits that 
Simon was suggesting may cross the line as being too late to implement 
now though (depends on how productive the people actually coding on this 
are I guess), and certainly the ideas thrown out for implementing any 
smart behavior or alerting when replication goes bad like Josh's 
"archiving_lag_action" seem based the deadline to get addressed 
now--even though I agree with the basic idea.

-- 
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com  www.2ndQuadrant.com



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Streaming replication status
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Streaming replication status