Re: WAL log management w/ multiple slaves - Mailing list pgsql-admin

From Albe Laurenz
Subject Re: WAL log management w/ multiple slaves
Date
Msg-id A737B7A37273E048B164557ADEF4A58B17DA73E2@ntex2010a.host.magwien.gv.at
Whole thread Raw
In response to WAL log management w/ multiple slaves  (Wells Oliver <wellsoliver@gmail.com>)
Responses Re: WAL log management w/ multiple slaves
List pgsql-admin
Wells Oliver wrote:
> Hi all. I currently have one master and one slave, and the slave cleans up the unneeded WAL files via
> pg_archivecleanup.
> 
> I'm adding a third slave and I was wondering what the best practices are in terms of managing these
> WAL files when there's more than one dependent server, in a situation where you can't have a slave
> removing the files.
> 
> I thought I could just cron up a removal of logs older than X days, which seems pretty easy, but not
> sure.

cron would work fine.

My scripts clean up old archived WAL as part of the backup job - that way I can be sure
that no archives are deleted unless they have been backed up first.

Yours,
Laurenz Albe

pgsql-admin by date:

Previous
From: David G Johnston
Date:
Subject: Re: pgpool use up memory
Next
From: Vasilis Ventirozos
Date:
Subject: Re: WAL log management w/ multiple slaves