From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to choose new master from slaves.?
Date: Thu, 4 Aug 2022 05:22:52 -0500
Message-ID: <4f65670a-443a-7e35-3b44-88a874b402b0@gmail.com> (raw)
In-Reply-To: <MW4PR20MB45253764C649AF76E4B9B7E7F39F9@MW4PR20MB4525.namprd20.prod.outlook.com>
References: <MW4PR20MB45253764C649AF76E4B9B7E7F39F9@MW4PR20MB4525.namprd20.prod.outlook.com>
On 8/4/22 02:43, Sacheen Birhade wrote:
>
> Hi All,
>
> I have a very basic question about streaming replication feature of Postgres.
>
> Let’s assume I have servers A, B, C, D, & E with postgres installed with
> streaming replication as follow:
>
> A à B ( sync replication )
>
> A à C ( async replication )
>
> A à D ( async replication )
>
> A à E ( async replication )
>
> A is master & rest are slaves.
>
> Now my question is:
>
> Assume replication link between A & B may/may not stable. If A goes down,
> how will I choose my new master from slaves? What are criteria to choose
> new master?
>
By "link between A & B may/may not stable", do you mean that B might not
actually be synchronized?
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: How to choose new master from slaves.?
In-Reply-To: <4f65670a-443a-7e35-3b44-88a874b402b0@gmail.com>
References: <MW4PR20MB45253764C649AF76E4B9B7E7F39F9@MW4PR20MB4525.namprd20.prod.outlook.com> <4f65670a-443a-7e35-3b44-88a874b402b0@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox