Hi Prince,
Can you please share me the steps to set up pgpool. Also if I use single pgpool that could led to the single point failure. Even for that reason in django I have to configure dsn like that so that it can automatically switch to other node if one node is
not reachable. How to do that??
Sent from my iPhone
PgPool-II is very much suitable for your case. It will distribute your read queries on master and slaves + automatic master switch detection + connection pools.
Happy to help :)
Prince Pathria Systems Engineer Evive +91 9478670472
goevive.com
As you are using pg 9.5, these links may help :
Hi
Does anyone have any idea with django how to configure multiple dsn that will automatically switch to new Postgres master host in case of failover happens to previous master and auto promotion of new master is done with repmgr.
My configuration is as below
Master and asynchronous slave node . Repmgrd is configured to take care of autofailover and promotion of new master node.
But from application side with django how to make datasource so that it automatically switches to new master node in case of failover.
Please share the steps.
Sent from my iPhone
|