pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndQuadrant.com>
To: Nicos Panayides <nicos@magneta.com.cy>
Cc: pgsql-admin@postgresql.org
Subject: Re: Off-site storage for PITR logs
Date: Sun, 14 Mar 2010 08:50:12 +0000
Message-ID: <1268556612.3825.5025.camel@ebony> (raw)
In-Reply-To: <4B9A6E8B.4050303@magneta.com.cy>
References: <4B9A6E8B.4050303@magneta.com.cy>

On Fri, 2010-03-12 at 18:40 +0200, Nicos Panayides wrote:

> I am planning an off-site backup solution for a fairly busy 
> (mostly-write) 8.3 database. The database is currently about 200GB in 
> size. I though about using log shipping and cold standby since it's easy 
> in terms of administration and also offers point in time recovery.
> 
> The database generates about 3 PITR log files per minute. If my 
> calculations are correct the sites need to be connected with a 7MBit 
> connection and the logs will need about 68GB of storage per day!
> 
> Does anyone have any suggestions on how to significantly reduce the 
> volume of log files or recommend another off-site backup solution that 
> would require less bandwidth and storage?

Consider turning off full_page_writes which will permanently minimise
the amount of WAL traffic, as well as being an integrated and
fully-supported option with Postgres. You will need additional
non-volatile cache on your disks to ensure that is a safe option, though
that will yield performance advantages also.

-- 
 Simon Riggs           www.2ndQuadrant.com




view thread (7+ messages)  latest in thread

Message-ID: <1268556612.3825.5025.camel@ebony>
Permalink:  ../1268556612.3825.5025.camel@ebony/
Also on:    postgresql.org/message-id/1268556612.3825.5025.camel@ebony

 · 

reply

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: simon@2ndQuadrant.com, nicos@magneta.com.cy
  Subject: Re: Off-site storage for PITR logs
  In-Reply-To: <1268556612.3825.5025.camel@ebony>

* 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