Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghHZx-0005R6-Fh for pgsql-general@arkaria.postgresql.org; Wed, 09 Jan 2019 17:23:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ghHZv-0003B8-QC for pgsql-general@arkaria.postgresql.org; Wed, 09 Jan 2019 17:23:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghHZv-0003B1-Ed for pgsql-general@lists.postgresql.org; Wed, 09 Jan 2019 17:23:43 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghHZs-0005cj-Gd for pgsql-general@lists.postgresql.org; Wed, 09 Jan 2019 17:23:42 +0000 Received: by mail-qt1-x843.google.com with SMTP id l12so9136003qtf.8 for ; Wed, 09 Jan 2019 09:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=O1E4cSKSOeg4/tdMu4fHaUGxPQROQPRyQe9HgKqoc1g=; b=q8iJt+PcKRdjbHMOfPv35uFcdYdVb/XEgTsEXVqiSMzNFjvdvkFAlq3GAgdB1+7BmX 4QC3YEoCdltVHoKM3FEBnTCyfKx40iToTJTQLASWqkQUAro1pLcwQeEA1LyxRcUap0aB LVcp7IvpyKTOuELSLxqeyVxZRvIGobjAiGQciym4Qin61NZRqa5GY+lWSSMCkfEL8KyI HgWdIRexaSmklvJDI0tToCGb6WLDTl1Ucs9PQEA1AAa//mFInTZf0zx45Lt+eQdGFW1O p4dKmyK+EA82bmBx+lJznYG3WOfpWpvxvlM6VMji8WI27syVBCli1SMd6cKynZnfd/0i 5RSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=O1E4cSKSOeg4/tdMu4fHaUGxPQROQPRyQe9HgKqoc1g=; b=qO+bVZZU8zomzB9iDiV3Ocie+bp3AH+ydKJ5qPV+SKBP3/oFBDexOwZR+M1w/9Uh5u 1YY+ooN/qlpzf8EWJ2yCtPxC+c5CLPqHZk802onHUP170PyHrY0lB61Axuxmm3KEsgMp s22k874afKmJ6uQoTFUD5ZBrq94h5zKmzpqlsSFX4pU0+/gQdyTxhyIszsmxTS6+uKJN pov3HnR9h3zxBvdHlQbPejVJUUTWEwgH1o2CYmYUYmvZJi8Rch+Z5lgm2ETiC0+KkvgH 0wk3C+NUWTP+jEgbx8CbEUA1VZqyHCCDQyF7RqgpgZugyyhO34aeDfUktBlogNbj0kBf oI+g== X-Gm-Message-State: AJcUukcy4GIPMGVFUN1R6QhoEGRVajHMEBshrhl14W6U7sWNsfatpaCP FBED6sCpZf/SIRt2dbXYXx+iLeTAtHisNrDF99P4FkoZOzUGpWAu+IGoA1UAysWkLvGicKcvYNS VT744tQfcrkyXNvDyh7htb2qn5BR2PT3ahgCMwuiya+/LtN8CKtOZbvlaQGfdCF7TL+rWkpw5/c kxL3WCXH+pLzE= X-Google-Smtp-Source: ALg8bN5DF64bzBKVEgx6lNXkBkh6oUWjvsWwQhZuKHg5kxDdYFrot0xQMAFKlW6uM0t1BJg+AUjj5g== X-Received: by 2002:ac8:65c7:: with SMTP id t7mr6424818qto.143.1547054619256; Wed, 09 Jan 2019 09:23:39 -0800 (PST) Received: from alderaan.marques ([186.12.108.249]) by smtp.googlemail.com with ESMTPSA id p48sm42642662qtp.62.2019.01.09.09.23.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 09:23:38 -0800 (PST) Subject: Re: multiple configurations with repmgr To: ROS Didier , "pgsql-general@lists.postgresql.org" References: <958f7600f9d84d5aa91838ca43e317f8@PCYINTPEXMU001.NEOPROD.EDF.FR> From: =?UTF-8?Q?Mart=c3=adn_Marqu=c3=a9s?= Openpgp: preference=signencrypt Autocrypt: addr=martin@2ndquadrant.com; prefer-encrypt=mutual; keydata= mQENBFGQ9akBCAC+rCultjweJUjKgFfj0s3XQULnyNrC3N8C7Y2v5xPEw+EZAD6+kVDimItf jY2oZGdP8+dmfr79zVSx7IBN+BPXiz+8k+DnGrHchIrGoVcXbOomqqKBYDQYA1DvGU4Nfu3+ g7Iu3FFRdOuJkhW6mP+uXLs3VudM36Ksu9nnWSAtZ7+1k4klstwQEIJk+8xDIi2azJnLstY7 mPOEG2jOIhC0w2Wl6BWIQi0pJr/EjfZRgta4ZrbHnROJZubRcdaZxZmT1bWjrAdPRo3taJzm A82hIh4gTkaFRmiyDvMu8Iu1k1dw1bA4ranrs1MwBbnXZFjLpjXrtc82+btU7yQN4Kb9ABEB AAG0OU1hcnTDrW4gTWFycXXDqXMgKERCQSBBcmdlbnRpbmEpIDxtYXJ0aW5AMm5kcXVhZHJh bnQuY29tPokBPgQTAQIAKAIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AFAlsCpfUFCQ00 FzQACgkQewO0SAEAVNKFygf+O2tIEXklaoSUhx2XM62NX7Ao8VaTaVBFZv1PFyKjqK96NZL6 oGjqO9z7LXjIWUatXVBH3Cxa4j/RNovWh0eNykIHZQN/gAYNB9eE8TmRRtj+S3D/rukwnu2s 16ALzEu5x2OABFEgj+/hH3JFViSC1mBnibFLYtTm4ydzL/URpObffgCeHXxBrHZ0o7XZsTBk 8UwNcsFpblSEdEpCZj/14UwAlEs5DPEMqn0I0hNHcVbliPKhy7CETJSet0hbpJvFqaJTbb0d p6i/Z8bHP0IrmYJWpkX5vH9oexYyPRM+nc1FXJnich3MtHfA/fTtGrM9XLWCt+NX5pdkHIUE ApfLXLkBDQRRkPWpAQgAoNxnsp7AIiOBT8ufUbTGFWNbOsViwFT7kMnQixNaR69S/YBxkWit BdogJA9D0y0j/qBEzY+XwZGVPLi4eYYRl0+u6qobpmgy2fIGaIyW8H20Zi8RYcjbixfLNrZV W0Wj4RDgiv1wnJqlTTu6sNtv1pHXfxnTxB27DHbQnNiBt/NC4gvy3TRIEzAECOg+unFtOxhS jx6uNRllU/uo7iPYUyJT5HyTNxYQQRK3h6wGhtMlxPi+0mY7TvsS0Pmvi5wWPQRRRs+waYbX A7lYXO1a1SCeR4KgTm3AXcj0iTPL7xxsMZQuPIaJMf/p9x4Ay4M9V6Mn02AvA6TQezL7NVsO gwARAQABiQElBBgBAgAPAhsMBQJbAqZ8BQkNNBfPAAoJEHsDtEgBAFTSItoH/2l15R9tmcRv zuNpsoYxpI2u+hvItRiXTN0Q5cOiiR7t03I1LjqSu66DhpvNCpWcQ05KUyrUH6S/GrDHHkbX 461XwdTjJDjQB8DiKmLRduf/CLD9uhpKDocGiazN0rJrLwDIok73YjCBiOV5CRmEyCoK1mNW suMNC6sMjNdBUi2ZOFAcrvG+RotsjDDGc0fRAV9UhykJuZuiE+no6f/WDu/iV2bAU832+/m1 5Nh06IDKazVMw/Twfkxm1NTTL6W/wcQIk0LjAFSDzgYud0i0lbe67R+Al94n+Zfp5slgsB4u xGH9NyG1PkFOSA8WyXSEWXbLPgXmZh/E6FqefUbHnjA= Message-ID: <529b85d5-5137-3e66-6428-febc3c96a997@2ndquadrant.com> Date: Wed, 9 Jan 2019 14:23:35 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <958f7600f9d84d5aa91838ca43e317f8@PCYINTPEXMU001.NEOPROD.EDF.FR> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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