Re: Configuration of django with master slave replication Postgres - Mailing list pgsql-admin

From Thomas Poty
Subject Re: Configuration of django with master slave replication Postgres
Date
Msg-id CAN_ctnivSuXmBjKHaJyn_iOrTioDcFZnRnYLMU1zg1rEm3CAPw@mail.gmail.com
Whole thread Raw
In response to Configuration of django with master slave replication Postgres  (soumitra bhandary <soumitra.bhandary@hotmail.com>)
Responses Re: Configuration of django with master slave replication Postgres  (Prince Pathria <prince.pathria@goevive.com>)
List pgsql-admin

Le mar. 2 avr. 2019 à 13:50, soumitra bhandary <soumitra.bhandary@hotmail.com> a écrit :

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

pgsql-admin by date:

Previous
From: Shreeyansh Dba
Date:
Subject: Re: trying to analyze deadlock
Next
From: Prince Pathria
Date:
Subject: Re: Configuration of django with master slave replication Postgres