Re: Estimating WAL usage during pg_basebackup

From: Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com>
To: Mike Blackwell <mike(dot)blackwell(at)rrd(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Estimating WAL usage during pg_basebackup
Date: 2014-11-26 02:20:42
Message-ID: CADp-Sm4gXYO6POirBMMSpVZQ1ouA5v2TEMBfKzLJnkVCsP8bgA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 31, 2014 at 2:52 AM, Mike Blackwell <mike(dot)blackwell(at)rrd(dot)com>
wrote:

> I need to get an idea of how much WAL space will be required during a long
> (many hours) pg_basebackup over a relatively slow network connection. This
> is for a server that's not yet running PITR / streaming.
>
> Any thoughts?
>

​You may want to explore
--xlog-method=method

This will enable you to 'fetch' wals at end of backup (which means you
should guess wal_keep_segment properly)​

Or you can 'stream' them which means WALs will be backed up in parallel.
This may introduce contention on network and hence may slow it down but you
will not have to guess wal_keep_segment​. See if this helps you.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sameer Kumar 2014-11-26 02:37:58 Re: is there a warm standby sync trigger?
Previous Message Bill Moran 2014-11-26 00:47:25 Re: Avoiding deadlocks when performing bulk update and delete operations