pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Ajay Pratap <ajaypratap@ameyo.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Pgbackrest backup is too slow
Date: Fri, 11 Oct 2019 08:50:53 -0400
Message-ID: <20191011125053.GF6962@tamriel.snowman.net> (raw)
In-Reply-To: <CABi=8qzrt=xqZ00nFYpLeJviMUAMnSO3TOuQJnxsDZMzBK1=_w@mail.gmail.com>
References: <CABi=8qzrt=xqZ00nFYpLeJviMUAMnSO3TOuQJnxsDZMzBK1=_w@mail.gmail.com>

Greetings,

* Ajay Pratap (ajaypratap@ameyo.com) wrote:
> I have a Centos 7 server which runs Postgresql 10.7. I am using pgbackrest
> to take db backup.
> Problem is backup is too slow.

Have you tried running 'top' to see what's going on?

> My data dir size is 9.6G and full backup runtime is 22 mins
> I also tried using process-max=3, full backup runtime = 21 mins

Erm, those numbers don't make any sense to me- as an example, we
regularly back up a 12GB database, from Dallas to San Fran, in 5
minutes.

I see you're requesting a checkpoint to start immediately, but how long
does the checkpoint actually take to complete?  Have you looked at your
PG logs..?

Have you tried running 'top' and then running the backup and looked to
see what's going on?  Is the CPU at 100%?  Are all the processes stuck
in 'D' state all the time (meaning you don't have enough i/o resources),
or...?

> In production we have a database of size more than 500GB. It would not be
> feasible for me to use it as it is.pgbackrest version is
> 2.18-1.rhel7.x86_64.
> installed from pgdg yum repo.

Given sufficient resources, we've seen pgbackrest push over 1TB/hour, so
there is definitely something strange going on here.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (5+ messages)  latest in thread

Message-ID: <20191011125053.GF6962@tamriel.snowman.net>
Permalink:  ../20191011125053.GF6962@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20191011125053.GF6962@tamriel.snowman.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sfrost@snowman.net, ajaypratap@ameyo.com
  Subject: Re: Pgbackrest backup is too slow
  In-Reply-To: <20191011125053.GF6962@tamriel.snowman.net>
  References: <CABi=8qzrt=xqZ00nFYpLeJviMUAMnSO3TOuQJnxsDZMzBK1=_w@mail.gmail.com> <20191011125053.GF6962@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