From: Martín Marqués <martin@2ndquadrant.com>
To: ROS Didier <didier.ros@edf.fr>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: multiple configurations with repmgr
Date: Wed, 9 Jan 2019 14:23:35 -0300
Message-ID: <529b85d5-5137-3e66-6428-febc3c96a997@2ndquadrant.com> (raw)
In-Reply-To: <958f7600f9d84d5aa91838ca43e317f8@PCYINTPEXMU001.NEOPROD.EDF.FR>
References: <958f7600f9d84d5aa91838ca43e317f8@PCYINTPEXMU001.NEOPROD.EDF.FR>
El 8/1/19 a las 13:17, ROS Didier escribió:
> Hi
>
> We are going to use repmgr with one node for the
> primary, one node for the standby and one node for the witness.
>
> It works fine _with one project_.
>
>
>
> The problem is that we want to have several other projects. Each one
> with its own primary node, its own standby node and the _same witness node._
>
> Question : is it possible to do that ? _One witness node_
> which surveys several other nodes.
Yes, you can accomplish that following the instructions below for
configuring the witness:
- Initialize the postgres server on the witness node
- Create one database for each cluster the witness will be managing
- Create the appropriate repmgr.conf files, one for each cluster managed
through this witness, and each with the appropriate conninfo setting so
they point to different databases.
- Run `repmgr witness register` multiple times, using different
configuration files on each run
Hope that helps clarify.
P.S.: This works on latest versions of repmgr. Before 3.3 the witness
was created through repmgr which made things harder to manage, reason
why that was removed in later versions
Cheers,
--
Martín Marqués http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: martin@2ndquadrant.com, didier.ros@edf.fr
Subject: Re: multiple configurations with repmgr
In-Reply-To: <529b85d5-5137-3e66-6428-febc3c96a997@2ndquadrant.com>
References: <958f7600f9d84d5aa91838ca43e317f8@PCYINTPEXMU001.NEOPROD.EDF.FR> <529b85d5-5137-3e66-6428-febc3c96a997@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox