From: | Inzamam Shafiq <inzamam(dot)shafiq(at)hotmail(dot)com> |
---|---|
To: | Arif Hussain <ahussain19(at)gmail(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Regarding HA, Failover and Load Balancing |
Date: | 2023-11-03 10:04:28 |
Message-ID: | AM9P251MB0330DEBE610E722B88C294FB98A5A@AM9P251MB0330.EURP251.PROD.OUTLOOK.COM |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
You can use combination of patroni, pgbouncer, and HAProxy. patroni will work for auto failover, pgbouncer is for connection pooling and HAProxy can be used for load balancing. These all tools are open source.
Regards,
Inzamam Shafiq
________________________________
From: Arif Hussain <ahussain19(at)gmail(dot)com>
Sent: Friday, November 3, 2023 2:04 PM
To: pgsql-general(at)lists(dot)postgresql(dot)org <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Regarding HA, Failover and Load Balancing
Hello,
Could anyone please help to implement High availability, replication and failover for postgresql.
* We are using postgreSQL 14 on VMs (planning to upgrade soon).
* We have a single server and planning to achieve:
i) High availability (1st priority)
ii) Automatic Failover (1st priority)
iii) Data Replication. (1st priority)
iv) Fault detection (2nd priority)
v) Monitoring and Alerts (2nd priority)
vi) GUI (2nd priority)
* As far as I know , postgres does support different replication options but it does NOT support automatic failover and load balancing.
* As per my research, I found the below list of tools but all of the required features are NOT provided by any one tool. Every tool has some pros and cons.
pgpool-II: it provides pooling and load balancing but it does not provide automatic failover.
Patroni: it provides automatic failover but it is not good for load balancing.
ClusterControl: Another candidate with free community addition but failover is only in paid version. Not sure how efficient it is.
EnterpriseDB: Another one fully paid. Exploring each and every tool to understand its capabilities and limitations would be a very time consuming task.
I want to know which tool or set of tools are being used mostly so that I can narrow down my research to make an efficient decision quickly. Open source tools are our preference but if some paid tools provide almost all of the features, we would think of it.
Thanks,
Arif
From | Date | Subject | |
---|---|---|---|
Next Message | Marc Millas | 2023-11-03 10:09:27 | Re: pg_dump/pg_restore --jobs practical limit? |
Previous Message | Arif Hussain | 2023-11-03 09:04:17 | Regarding HA, Failover and Load Balancing |