On 19/2/19 11:13 π.μ., soumitra
bhandary wrote:
HAProxy does not know the specifics of pgsql protocol neither does it parse queries. So your infrastructure has to know in advance which activity should be redirected to the readonly port and which to the readwrite port. So in essence you will have to have at least two datasources defined . You may find this helpful : https://severalnines.com/blog/postgresql-load-balancing-using-haproxy-keepalived
-- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt |