Re: [GENERAL] Repmgr + pgbouncer - Notification of master promotionto application level ...

Поиск
Список
Период
Сортировка
От Rory Campbell-Lange
Тема Re: [GENERAL] Repmgr + pgbouncer - Notification of master promotionto application level ...
Дата
Msg-id 20170614185400.GD473@campbell-lange.net
обсуждение исходный текст
Ответ на [GENERAL] Repmgr + pgbouncer - Notification of master promotion to applicationlevel ...  (Martin Goodson <kaemaril@googlemail.com>)
Ответы Re: [GENERAL] Repmgr + pgbouncer - Notification of master promotionto application level ...
Список pgsql-general
On 14/06/17, Martin Goodson (kaemaril@googlemail.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


В списке pgsql-general по дате отправления:

Предыдущее
От: Martin Goodson
Дата:
Сообщение: [GENERAL] Repmgr + pgbouncer - Notification of master promotion to applicationlevel ...
Следующее
От: Martin Goodson
Дата:
Сообщение: Re: [GENERAL] Repmgr + pgbouncer - Notification of master promotionto application level ...