pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated
Date: Mon, 1 Jun 2020 08:50:38 +0300
Message-ID: <74A42D0ECD334244813128ADE21A2DD4@dell2> (raw)
In-Reply-To: <16629afe-a53c-76e4-ef1e-a0a5ceba2d71@aklaver.com>
References: <26EC9619620649D1B55C9C95811E4ADB@dell2>
	<16e57e3f-5c26-fd55-d42a-f030c8550952@aklaver.com>
	<102C5FA16F1549659B393B6A824B561F@dell2>
	<698dbad1-e3b2-f13a-8e97-8ce01efed516@aklaver.com>
	<246B62BD5BB44DCE8AEB15CA9723CDCE@dell2>
	<16629afe-a53c-76e4-ef1e-a0a5ceba2d71@aklaver.com>

Hi!

>> I want to create  hot standby async server using
>> /etc/init.d/postgresql stop
>> mv /var/lib/postgresql/12/main /var/lib/postgresql/12/mainold
>> pg_basebackup --write-recovery-conf -D /var/lib/postgresql/12/main
>I don't see where the base backup is being taken from just where it is going.

It is taken from VPS server over 20 Mbit public internet connection.
Both servers are running Debian Linux.

>> I dont receive WALs.
>If you are doing binary replication then you are receiving WALs. It just a matter of whether you are streaming them or shipping 
>them over complete.

Using wal_keep_segments=360 also causes same wal file not found error after pg_basebackup.
master server has 6GB wal files.  wal log during pg_basebackup is much slower than 360.
Maybe pg_basebackup skips wal segments . Maybe using wal_compression=on causes the issue.

How to fix this ?
How to create base backup so that cluster is tranferred over internet faster? Maybe it can transferred in compressed form over 
internet.

Andrus.





view thread (17+ messages)  latest in thread

Message-ID: <74A42D0ECD334244813128ADE21A2DD4@dell2>
Permalink:  ../74A42D0ECD334244813128ADE21A2DD4@dell2/
Also on:    postgresql.org/message-id/74A42D0ECD334244813128ADE21A2DD4@dell2

 · 

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: kobruleht2@hot.ee, adrian.klaver@aklaver.com
  Subject: Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated
  In-Reply-To: <74A42D0ECD334244813128ADE21A2DD4@dell2>
  References: <26EC9619620649D1B55C9C95811E4ADB@dell2> <16e57e3f-5c26-fd55-d42a-f030c8550952@aklaver.com> <102C5FA16F1549659B393B6A824B561F@dell2> <698dbad1-e3b2-f13a-8e97-8ce01efed516@aklaver.com> <246B62BD5BB44DCE8AEB15CA9723CDCE@dell2> <16629afe-a53c-76e4-ef1e-a0a5ceba2d71@aklaver.com> <74A42D0ECD334244813128ADE21A2DD4@dell2>

* 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