From: Stephen Frost <sfrost@snowman.net>
To: Swapnil Vaze <swapvaze28@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: pg_basebackup running slow
Date: Fri, 14 Oct 2016 09:37:51 -0400
Message-ID: <20161014133751.GA13284@tamriel.snowman.net> (raw)
In-Reply-To: <CABWf+yROOxwOf-6Vst95q5tzSeEB9gySee4=G6buMauR3ov2BQ@mail.gmail.com>
References: <CABWf+yROOxwOf-6Vst95q5tzSeEB9gySee4=G6buMauR3ov2BQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Vaze,
* Swapnil Vaze (swapvaze28@gmail.com) wrote:
> We are using postgresql 9.2 on redhat linux instance over openstack cloud.
>
> Database is around 441 GB.
>
> We are using below command to take backup:
>
> pg_basebackup -v -D /pgbackup/$bkupdir -Ft -z -c fast
>
> Backup size created is around 84GB.
>
> However, it is taking almost 10 hr 21 minutes to complete.
>
> Looking for speed improvement?
pg_basebackup is single-threaded and the compression is pretty
CPU-intensive. You could try reducing the compression level, but that
will make the backups larger, of course. Also, there's a limit to how
far that will get you- once you get to "no compression", that's just as
fast as pg_basebackup can run.
If you're interested in a backup tool which can operate in parallel, you
might want to look at pgbackrest.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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-performance@postgresql.org
Cc: sfrost@snowman.net, swapvaze28@gmail.com
Subject: Re: pg_basebackup running slow
In-Reply-To: <20161014133751.GA13284@tamriel.snowman.net>
* 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