Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNvX9-0005YE-TE for pgsql-admin@arkaria.postgresql.org; Fri, 03 Feb 2023 12:51:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pNvX7-0008Ma-9d for pgsql-admin@arkaria.postgresql.org; Fri, 03 Feb 2023 12:51:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNvX6-0008MR-Up for pgsql-admin@lists.postgresql.org; Fri, 03 Feb 2023 12:51:12 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNvX1-0002w2-T7 for pgsql-admin@lists.postgresql.org; Fri, 03 Feb 2023 12:51:11 +0000 Received: from ANAT ([78.197.128.121]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.168]) with ESMTPSA (Nemesis) id 1Mt6wz-1oUs0L17BB-00tRPW; Fri, 03 Feb 2023 13:51:00 +0100 From: "Michel SALAIS" To: "'Sbob'" , "'Pgsql-admin'" References: <0f0742dc-fd37-cc82-061e-0fbee2911f82@quadratum-braccas.com> In-Reply-To: <0f0742dc-fd37-cc82-061e-0fbee2911f82@quadratum-braccas.com> Subject: RE: Failover / repmgr questions Date: Fri, 3 Feb 2023 13:50:59 +0100 Message-ID: <01ca01d937ce$2ac90cb0$805b2610$@msym.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQK1nrnb3WKKvd4/fDO46DtwJ2jM660EXZUg Content-Language: fr X-Provags-ID: V03:K1:1bSFsIH2Vz4kqhwc4W2QmC06JgwGMG7B+HXq/iR8GY7EtL3RbJo EIDKFt+ZQGl5CJrbpqDdvYQXzazsVDqyITpHt0fuxmloc2FWYdE0Sa9Y0ibFh0Ubq2chiKS 8NLhf3ifyrwersJcOSP9OUIp5rUWX1sB/fM6LsODBfmuC20ebL4DyjVjBb1x4LSvyTnMYMJ 2SfBqtdv4dE5Qu0VE8W0g== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:hoavXNlW9ls=;dne7BmMQVBL0spuyCEzym/KTtAL FyWdKgFFmxysSftGSc1qYRBw1YWH9PwFBBlbYBHBkfQKyXWARs3uVk8939hu5HbB+m7TjXJgv PxwCZusEA0qFl6P+3Q0BklKrh1uvLz0Og3w0z5p8a74Uoa9gH2yPZvlCLP49nXBaeG0rxRCfr rCmzfuxQQjmdhPiQmOg4NOKOK/SwW9AkPdi07p2HgArQcXbZHyReOhg0wQxSHtiNVDXhRVIWm jJS0GY04RziZJ1PraMtXJ1G2JrYiZh5+TPERz7zlqP9JlUeb1lq8Nr98+nlx1uoh/Fy2ypD97 Dc55EhQL5JoKL4hJ569W4a7Vgnq69ohw4LZI1Oq8Yo8amK7KTDYY015s0fimnrmddpAGSL5Fe mdfajFuVvXe5Z1zLHCUrnd957bWN5w9Osbsm+0Az+o3vWvzO5uE+5GLH14GQ7LzJDyFAb5d3q eX5WOAVIKwL+XaV1Wwmr0j2SOxMEboEC0OsI4IAr0qbTDdC4XYm4/3dy2aTOXeE0xWKXyAiZx WABU4n85FGqz6I/MFTM0tUuvR86gxMzD8A1Lbl64vnLgS+XGaschLWq+GRYOUSseBh0jeR631 J5MTZxx6DRcAzT5TdFtQPk1cpl9COGASjng/r7vhs7Y6XOq3ttUlDByQayvm5aOYStIDX9E3G V2wVF0jArM3ihF0S/Vu8H/28dV/wOQZfCT95LPbNcw== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, You can use repmgr or patroni Repmgr can do what you want but it is not just by executing repmgr = command. You have to run a daemon "repmgrd" on all nodes. Then you = should activate automatic failover... Note that a witness is not necessary to do that but it could be useful = depending on what you are searching... Michel SALAIS -----Message d'origine----- De : Sbob =20 Envoy=C3=A9 : mardi 24 janvier 2023 20:26 =C3=80 : Pgsql-admin Objet : Failover / repmgr questions All; we are constructing a PostgreSQL based architecture that is more complex = than "promote node B and manage the IP" for a failover. It would be ideal if I could deploy repmgr and have repmgr run a script = for me if it detects a failure, but it looks like this may not be an = option. Anyone know if I can force repmgr to do this? Is there a better = tool that does? Thanks in advance