public inbox for [email protected]  
help / color / mirror / Atom feed
From: SOzcn <[email protected]>
To: jayakumar s <[email protected]>
Cc: [email protected]
Subject: Re: DB Switch over and Switch back support
Date: Fri, 22 Nov 2024 19:27:18 +0300
Message-ID: <CAJyV5AZCqoHe2qG2ZZbNNY-_i7E_dSQAPzsHK6zAoi=9fb0Xbg@mail.gmail.com> (raw)
In-Reply-To: <CAFPcKG0p8MORbc+AVuSxc9shW7HqcEnQiE5hsk-f-y+cey5Txg@mail.gmail.com>
References: <CAFPcKG0p8MORbc+AVuSxc9shW7HqcEnQiE5hsk-f-y+cey5Txg@mail.gmail.com>

Hello,

If you did this with the replication method physically it's not possible.
You can manage it with Crontab on the OS.

As an example ;
Switchover 1  from node 1 to node 2.
- Make failover on your replica.   sudo pg_ctlcluster 14 main promote
Switchover 2 :
On node 1 clear your data path and make a new replica from node 2 to node 1
then make failover again.

You can prepare the steps and manage them with Crontab or some bash script.
Bash script might work better for this I think.

It could work mostly with less data-sizing environments. If you have a load
environment I would advice you to patroni cluster system.

Have a nice weekend.

jayakumar s <[email protected]>, 22 Kas 2024 Cum, 18:59
tarihinde şunu yazdı:

> Hi Team,
>
> I have configured master and slave DB's. Need to configure switcher and
> switch back setup. I checked google but I am unable to find the correct
> link. Kindly share with me. If any one has the setup document.
>
> Also please confirm. Without using any third party s/w. We can do DB
> switch over and switch activity?
>
> Regards,
> Jayakumar.S
>


view thread (2+ messages)

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: DB Switch over and Switch back support
  In-Reply-To: <CAJyV5AZCqoHe2qG2ZZbNNY-_i7E_dSQAPzsHK6zAoi=9fb0Xbg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox