Re: Repmgr + pgbouncer - Notification of master promotion to application level ...

From: Rory Campbell-Lange <rory(at)campbell-lange(dot)net>
To: Martin Goodson <kaemaril(at)googlemail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Repmgr + pgbouncer - Notification of master promotion to application level ...
Date: 2017-06-14 18:54:00
Message-ID: 20170614185400.GD473@campbell-lange.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 14/06/17, Martin Goodson (kaemaril(at)googlemail(dot)com) wrote:
> The new master's repmgr promote script will execute commands to pause
> pgbouncer, reconfigure pgbouncer to point to the new database address, and
> then resume.

You could just move the service ip address at the new postgresql master
to which the pgbouncer instances on each app server could reconnect.

I assume, with reference to https://github.com/2ndQuadrant/repmgr, that
you could use repmgrd to trigger a script to do just that at
"switchover", possibly something you would need to monitor the
"repl_events" table to achieve.

Rory

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin Goodson 2017-06-14 23:18:39 Re: Repmgr + pgbouncer - Notification of master promotion to application level ...
Previous Message Martin Goodson 2017-06-14 16:36:12 Repmgr + pgbouncer - Notification of master promotion to application level ...