pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to replicate 2 nodes parallel
2+ messages / 2 participants
[nested] [flat]

* How to replicate 2 nodes parallel
@ 2021-05-15 19:32  Suraj Sawant <suraj.sawant@shreeyansh.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Suraj Sawant @ 2021-05-15 19:32 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

<div dir='auto'>Hi all,<div dir="auto"><br></div><div dir="auto">I'm using PostgreSQL 12.5, for HA setup I'm using 3 poatgresql nodes.</div><div dir="auto"><br></div><div dir="auto">For that I need to take 'pg_basebackup' on two nodes simultaneously from my Master node.</div><div dir="auto"><br></div><div dir="auto">Is there any option available to take 'pg_basebacup' parallel and then make it in A-B-C format</div><div dir="auto">i.e. A -&gt; Master</div><div dir="auto">&nbsp; &nbsp; &nbsp; B -&gt; Slave</div><div dir="auto">&nbsp; &nbsp; &nbsp; C -&gt; DR.</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Suraj</div><div dir="auto"><br></div></div>

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How to replicate 2 nodes parallel
@ 2021-05-17 07:13  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Suraj Sawant <suraj.sawant@shreeyansh.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Laurenz Albe @ 2021-05-17 07:13 UTC (permalink / raw)
  To: Suraj Sawant <suraj.sawant@shreeyansh.com>; pgsql-admin@lists.postgresql.org

On Sun, 2021-05-16 at 01:02 +0530, Suraj Sawant wrote:
> I'm using PostgreSQL 12.5, for HA setup I'm using 3 poatgresql nodes.
> 
> For that I need to take 'pg_basebackup' on two nodes simultaneously from my Master node.
> 
> Is there any option available to take 'pg_basebacup' parallel and then make it in A-B-C format
> i.e. A -> Master
>       B -> Slave
>       C -> DR.

Since "pg_basebackup" uses the non-exclusive backup method, you can run two
such backups concurrently.

However, there is no way to have it run a backup with several parallel processes
to speed up the procedure.

The high availability setup will require thrid-party software, since PostgreSQL
has no built-in clusterware.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-05-17 07:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-05-15 19:32 How to replicate 2 nodes parallel Suraj Sawant <suraj.sawant@shreeyansh.com>
2021-05-17 07:13 ` Laurenz Albe <laurenz.albe@cybertec.at>

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