Re: [(catch-ext)] Re: [(catch-ext)] Re: Setting up streaming replication on large database (20+ TB) for the first time

From: "Ivan N(dot) Ivanov" <ivan(dot)ni(at)telebid-pro(dot)com>
To: Vijaykumar Jain <vijaykumarjain(dot)github(at)gmail(dot)com>
Cc: Ron <ronljohnsonjr(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: [(catch-ext)] Re: [(catch-ext)] Re: Setting up streaming replication on large database (20+ TB) for the first time
Date: 2022-08-18 12:35:10
Message-ID: CAC+=vAzgceKa3sHuKKYg9yc9FSYMibC3nVBNRX9mLcxS8zEjNw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yes, pgbackrest seems the best solution for faster backup and restore.

We can close the discussion here for now, replaying million WAL files is
just slow and this is normal.

On Thu, Aug 18, 2022 at 12:10 PM Vijaykumar Jain <
vijaykumarjain(dot)github(at)gmail(dot)com> wrote:

> Sorry for top posting, from phone.
>
> But pgbackrest exactly helped with that. With compression and parallel
> process in backup, the backup and restore was quick. I used this, where I
> took a backup and immediately did a restore so less wals to replay, else
> wal replay is indeed slow.
>
> On Thu, Aug 18, 2022, 1:03 PM Ivan N. Ivanov <ivan(dot)ni(at)telebid-pro(dot)com>
> wrote:
>
>> Thank you, people. The big problem in my case, which I have not
>> mentioned, is that I think the network is a bottleneck, because I am
>> running pg_basebackup through internet from local country to Amazon
>> instance in Germany and the speed in copying is around 50 MB/sec max, that
>> is why it takes 2 days for copying.
>>
>> I will try using high compression for the basebackup to reduce the time.
>>
>> pgbackrest is an alternative, too
>>
>> Thank you again!
>>
>>
>>
>> On Wed, Aug 17, 2022 at 11:13 PM Ivan N. Ivanov <ivan(dot)ni(at)telebid-pro(dot)com>
>> wrote:
>>
>>> Thank you for your answer! I have found this tool and I will try it
>>> tomorrow to see if this "read-ahead" feature will speed up the process.
>>>
>>> On Wed, Aug 17, 2022 at 11:09 PM Christophe Pettus <xof(at)thebuild(dot)com>
>>> wrote:
>>>
>>>>
>>>>
>>>> > On Aug 17, 2022, at 13:06, Ivan N. Ivanov <ivan(dot)ni(at)telebid-pro(dot)com>
>>>> wrote:
>>>> >
>>>> > How to speed up recovering of WAL files?
>>>>
>>>> Since you are running on your own hardware, you might take a look at:
>>>>
>>>> https://github.com/TritonDataCenter/pg_prefaulter
>>>>
>>>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2022-08-18 13:57:55 Re: Data caching
Previous Message Torsten Krah 2022-08-18 12:22:09 Re: Re: Different execution plan between PostgreSQL 8.2 and 12.5