Re: Streaming replication status - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Streaming replication status
Date
Msg-id 4B47AFBF.2030704@agliodbs.com
Whole thread Raw
In response to Streaming replication status  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Streaming replication status
Re: Streaming replication status
List pgsql-hackers
On 1/8/10 1:16 PM, Heikki Linnakangas wrote:
> * A standby that connects to master, initiates streaming, and then sits
> idle without stalls recycling of old WAL files in the master. That will
> eventually lead to a full disk in master. Do we need some kind of a
> emergency valve on that?

WARNING: I haven't thought about how this would work together with HS yes.

I think this needs to be administrator-configurable.

I'd suggest a GUC approach:

archiving_lag_action = { ignore, shutdown, stop }

"Ignore" would be the default.  Some users would rather have the master
shut down if the slave has stopped taking segments; that's "shutdown".
Otherwise, it's "stop" which simply stops archiving and starts recylcing
when we reach that number of segments.

Better name for the GUC very welcome ...

--Josh Berkus


pgsql-hackers by date:

Previous
From: Andreas Joseph Krogh
Date:
Subject: NOT NULL violation and error-message
Next
From: Guillaume Lelarge
Date:
Subject: Re: Application name patch - v3