pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason Long <hack3rcon@yahoo.com>
To: Ron Johnson <ronljohnsonjr@gmail.com>
To: Pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: PostgreSQL Guard
Date: Tue, 27 Feb 2024 20:46:33 +0000 (UTC)
Message-ID: <1668855396.866991.1709066793039@mail.yahoo.com> (raw)
In-Reply-To: <CANzqJaBe8wfOdBsYTEyNaXgdUdUsyeT0GU1OsNAC1YS6Cks7kw@mail.gmail.com>
References: <2131161806.698565.1709023412017.ref@mail.yahoo.com>
	<2131161806.698565.1709023412017@mail.yahoo.com>
	<CANzqJaAR=qYgPHEqO9mnm_9gaJ723=rBYZVSHN_+3NY9C_Gnig@mail.gmail.com>
	<1267802730.758412.1709046484381@mail.yahoo.com>
	<225b8b45-3e54-4c4e-bf7f-f4a9950621c8@aklaver.com>
	<730983731.798844.1709053243136@mail.yahoo.com>
	<CANzqJaBe8wfOdBsYTEyNaXgdUdUsyeT0GU1OsNAC1YS6Cks7kw@mail.gmail.com>

Hi,Do I have to run this command on the server where the main database is located?

Suppose you want to transfer the database of a website like Amazon.com to a new server and delete the old one. Many users are buying and selling on this website at the same time and it is not possible to turn off the server. What do you do to move a database to another server?
 
 
  On Tue, Feb 27, 2024 at 9:30 PM, Ron Johnson<ronljohnsonjr@gmail.com> wrote:   I used this web page to implement hot standby via physical streaming.  This command sets up everything for you:pg_basebackup \
            --pgdata=$PGDATA \
            --dbname=service=basebackup \
            --verbose --progress \
            --checkpoint=fast \
            --write-recovery-conf \
            --wal-method=stream \
            --create-slot --slot=pgstandby1 \
            --compress=server-zstd
I got it from https://www.tecmint.com/configure-postgresql-streaming-replication-in-centos-8/, which I encourage you to read.
For guarding, and situations with a minimal RTO SLA, I use PgPool-II to manage the cluster, automatic failover and Virtual IP address.  Note that only two database servers are needed.  Install PgPool on the two DB servers, and a third, smaller system.
There are other products which do the same thing as PgPool, and you might find them better.
On Tue, Feb 27, 2024 at 12:00 PM Jason Long <hack3rcon@yahoo.com> wrote:

Hi,Should I read https://www.postgresql.org/docs/current/warm-standby.html#STANDBY-SERVER-SETUP for question number 2?
 
 
  On Tue, Feb 27, 2024 at 7:28 PM, Adrian Klaver<adrian.klaver@aklaver.com> wrote:   On 2/27/24 07:08, Jason Long wrote:
> Hi,
> 1- Both split-brain protection and security. Any tool?
> 
> 2- Consider a database related to a website, which data is regularly 
> entered. Now you want to transfer this database to another server. 
> What's the solution?

https://www.postgresql.org/docs/current/high-availability.html



-- 
Adrian Klaver
adrian.klaver@aklaver.com

  

  

view thread (12+ messages)  latest in thread

Message-ID: <1668855396.866991.1709066793039@mail.yahoo.com>
Permalink:  ../1668855396.866991.1709066793039@mail.yahoo.com/
Also on:    postgresql.org/message-id/1668855396.866991.1709066793039@mail.yahoo.com

 · 

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: hack3rcon@yahoo.com, ronljohnsonjr@gmail.com
  Subject: Re: PostgreSQL Guard
  In-Reply-To: <1668855396.866991.1709066793039@mail.yahoo.com>
  References: <2131161806.698565.1709023412017.ref@mail.yahoo.com> <2131161806.698565.1709023412017@mail.yahoo.com> <CANzqJaAR=qYgPHEqO9mnm_9gaJ723=rBYZVSHN_+3NY9C_Gnig@mail.gmail.com> <1267802730.758412.1709046484381@mail.yahoo.com> <225b8b45-3e54-4c4e-bf7f-f4a9950621c8@aklaver.com> <730983731.798844.1709053243136@mail.yahoo.com> <CANzqJaBe8wfOdBsYTEyNaXgdUdUsyeT0GU1OsNAC1YS6Cks7kw@mail.gmail.com> <1668855396.866991.1709066793039@mail.yahoo.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