RE: dual active 2-node cluster?

Поиск
Список
Период
Сортировка
От Ron Watkins
Тема RE: dual active 2-node cluster?
Дата
Msg-id 0cb901d3d589$ae7d4f00$0b77ed00$@gmail.com
обсуждение исходный текст
Ответ на Re: dual active 2-node cluster?  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: [E] RE: dual active 2-node cluster?  ("Saha, Sushanta K" <sushanta.saha@verizonwireless.com>)
Список pgsql-novice
What about a hot standby mode where secondary node is receiving all transactions in real (or near-real) time?
Is this doable? We have 2 physical nodes, not 3, so if we can do a hot-standby config with a load balancer configured
infail-over mode, that should work as long as no transactions are dropped and the secondary node is staying current
(i.e.dual commit) with the primary node? 
Does anyone know if there are any links to how to setup such a config on the web?
Ron

-----Original Message-----
From: Laurenz Albe [mailto:laurenz.albe@cybertec.at]
Sent: Friday, April 13, 2018 6:41 AM
To: Ron Watkins; pgsql-novice
Subject: Re: dual active 2-node cluster?

On Fri, 2018-04-13 at 03:01 -0700, Ron Watkins wrote:
> We are working to setup a production environment and as such one
> requirement is to have as few single points of failure as possible. To
> that end, I have been searching the web for how to setup a 2-node
> cluster where both nodes are active. The goal is to allow both nodes
> to service SQL requests (load/query) and have a load balancer in front of the database to allow for transparent
outageand node recovery. 

You'd need synchronous replication, and if you do that with two nodes, you'll get low availability because any outage
willtake down the whole system.  That's not a shortcoming, that's unavoidable. 

You need at least three nodes for decent high availability, particularly if you want load balancing.

Look into Patroni for a high availability solution.

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



В списке pgsql-novice по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Indexes for inequalities
Следующее
От: "Saha, Sushanta K"
Дата:
Сообщение: Re: [E] RE: dual active 2-node cluster?