From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jasen Lentz <jlentz@sescollc.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pg_basebackup inconsistent performance
Date: Wed, 6 May 2020 07:27:46 -0700
Message-ID: <08b7392c-6ff2-ae3f-93c5-b3b771891b10@aklaver.com> (raw)
In-Reply-To: <MN2PR13MB40398A5B578066C1A8B8A99EBCA40@MN2PR13MB4039.namprd13.prod.outlook.com>
References: <MN2PR13MB40398A5B578066C1A8B8A99EBCA40@MN2PR13MB4039.namprd13.prod.outlook.com>
On 5/6/20 5:44 AM, Jasen Lentz wrote:
> We have pg_basebackup running on two of our DB servers that are
> replicated. We are running postgres 11, and it seems we are getting
> inconsistent performance from the backups and unsure as of why. We
> start out at 5-6 hours over a dedicated 10G port for 7TB. It creeps up
> to 8-9 hours then all of a sudden takes 12-16 hours. There seems to be
I'm guessing the above happens from one run to another correct?
Where are the machines you are backing up from/to relative to each on
the network?
Is there increased activity on the database servers e.g. inserts,
updates, etc during the extended backups?
> no rhyme or reason for the extended backup times. The command we use
> for backups is as follows:
>
> On server 2 (secondary), starts at 4PM
>
> pg_basebackup --pgdata=/opt/postgres/pgbackup/`echo $DATE`
> --format=plain --write-recovery-conf --no-sync --wal-method=stream
> --checkpoint=fast --label=`hostname`-`echo $DATE` --no-verify-checksums
> --host=<server1> --username=replication --port=5432
>
> On server 1 (Primary), starts at Midnight
>
> pg_basebackup --pgdata=/opt/postgres/pgbackup/`echo $DATE`
> --format=plain --write-recovery-conf --no-sync --wal-method=stream
> --checkpoint=fast --label=`hostname`-`echo $DATE` --no-verify-checksums
> --host=<server2> --username=replication --port=5432
>
> I’m not sure why or how we are running into the weeds. I am the
> SysAdmin and am not familiar with the inner workings of the DB. I can
> pass any commands that need run along to our DBA.
>
> From the OS perspective, we are not seeing any problems with CPU,
> memory or disk. We are running on RHEL 7.7
>
> Thanks!
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, jlentz@sescollc.com
Subject: Re: pg_basebackup inconsistent performance
In-Reply-To: <08b7392c-6ff2-ae3f-93c5-b3b771891b10@aklaver.com>
References: <MN2PR13MB40398A5B578066C1A8B8A99EBCA40@MN2PR13MB4039.namprd13.prod.outlook.com> <08b7392c-6ff2-ae3f-93c5-b3b771891b10@aklaver.com>
* 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