Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vGv1C-007yOT-Ul for pgpool-general@arkaria.postgresql.org; Thu, 06 Nov 2025 08:06:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1vGv1B-006Kna-PF for pgpool-general@arkaria.postgresql.org; Thu, 06 Nov 2025 08:06:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vGv1B-006KnR-JV for pgpool-general@lists.postgresql.org; Thu, 06 Nov 2025 08:06:52 +0000 Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vGv18-006Gtt-0W for pgpool-general@lists.postgresql.org; Thu, 06 Nov 2025 08:06:52 +0000 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-3d2ea93836bso425679fac.3 for ; Thu, 06 Nov 2025 00:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762416408; x=1763021208; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=A6lg/sKj7LjWO1nC6CI8UCttC6Kzky6K/MqVWIlc+YE=; b=iDlaOsXhgMh5IRHZg3no5yvPKcDn3qgnkDUMkroyScbYloZQOxlVicVQYefd3wlika 8hcPmvn4T6Ru4C5odcmjJHnWbUB5h1uqvQpRryxDNjNxYByy55X9nIzQ8d7Y0w+Q2CTv 4ryy6Ntg5I0/ZC7HF8oHw3S5Ly3s+PcaimxKWnjZ+GYB0iJuuXcKFa4HNsUZUEA41Go3 mrwiaTwZR5yW2LmcXoeLOPMf+xmbCWrC5krtTyykAPhWwR7PdRIce3L7gER0oB0osocY b2seu8GmHR80vBaGgNbxVQb5Ii/1xY6UDh55L8kpwduH5R3K5DIlAo7QsJN8eEbO+2Y0 KGFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762416408; x=1763021208; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A6lg/sKj7LjWO1nC6CI8UCttC6Kzky6K/MqVWIlc+YE=; b=b46S7H9/ZrXxGWeZXAmRT4YrRXSmX2edB1uvT3iltcQTkpHsnSHAWpHpL1El+Qg1Ab e3KWFdSC06roTCodM4jeCCesQqfEncbg8Wec6ytEd+fxfOq6Kn4BAeAMujH87DvSropx lOBitdLx3uLwnbZJv+X66y8jAA372K23JsOeBIAGcVuaNNhUHXTpfykKqJQzUP+trcK2 WgOfr9cj98nK1zExcScV+wLuzcqiTquSRkSqyzvOpqsh/jpP0KjLe19HPPG8oxlgSNE3 BmAXhEIb9ykFKarAnD1VxtgQyxq0dQdxXm0aMZzMuRKz01VM2QXkIbdN6jPOhbvqanwj IdTA== X-Gm-Message-State: AOJu0Yy3XdwaClnDlIEDBpg60ksVqvbGTpOHp+T2ZXe18hNjONJIt4lc LNVxuCBXkwNubVAKYnHc6tM5SuKU4rhIT2NOogOquiNvMKGCjHntOfAGh9tGJjAkuYheUX71t40 sZDY5A4u9+pnDjZMjUwVmDlDMYLxh3n3WcQ== X-Gm-Gg: ASbGnctTvy3VsYpx4TnGkq+iuwrcDuMJBKBWvWbBl92XxMQoob8Q7FrqGTdeVT6ecFL 4PfAKCrHxswRI8EG3V6JGxBY58lATkKSmM67i6Ysv0zavbLP6tXcZkTNnrPcFh2hUdXe51RuCm6 xL7ecYY1cZxEU9ztTBrzkQQycAuDsKnYAHGACeMmilWLIJVOJDgpLrJ00UkTu91PGQ7qW/sgWOn UTxfMNA1TSn1oSPbaF9cWZOQl5yUJwRNa4xJzd+v1fs4HNtvSbGQKWkvIuAHpyiv/CGMw== X-Google-Smtp-Source: AGHT+IEbrpj3zC98ENdL0IeyaQSX866ssZMUsf0649N/zq8rVgS/JGVH2Q/nTBTuZVnx5ROgvQhbb/8C8ZOC3gGQUM4= X-Received: by 2002:a05:6870:170f:b0:3d2:7800:cc15 with SMTP id 586e51a60fabf-3e19acf4735mr3051410fac.26.1762416407999; Thu, 06 Nov 2025 00:06:47 -0800 (PST) MIME-Version: 1.0 References: <20251104.113219.411936663096048386.ishii@postgresql.org> In-Reply-To: <20251104.113219.411936663096048386.ishii@postgresql.org> From: Luca Ferrari Date: Thu, 6 Nov 2025 09:06:11 +0100 X-Gm-Features: AWmQ_bkgThqiNAN9PUu89d2ehlsRomstGHAFM7PPOOqyyJzWlChwZVJbg0vqj-4 Message-ID: Subject: Re: rebooting a standby causes it go down on pgpool side To: Tatsuo Ishii Cc: pgpool-general@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Nov 4, 2025 at 3:32=E2=80=AFAM Tatsuo Ishii = wrote: > > From the official document: > "2 - Node is up. Connections are pooled." > https://www.pgpool.net/docs/latest/en/html/pcp-node-info.html > > So you can safely assume that "waiting" also meabs node is up (for > pgpool). To change the status from "waiting" to "up", you can issue > any SQL command (for example show pool_nodes") to pgpool. > Thanks, it is clear now! > I think what happens there is, pgpool's health check detects > PostgreSQL on pg3 goes down and trigger failover on pg3 pgpool. As > stated somewhere in the official docs, pgpool automatically sets > PostgreSQL to down status, but not automatically change the status to > up (or waiting). This is not a bug. It's by design. If you want to > make the status to up automatically, please consider using > auto_failback. Thanks, I was not assuming it was a bug, only asking for confirmation about this behavior. > > If you want to avoid the failover, you can tweak the health check > parameters so that while PostgreSQL rebooting, the health check > repeatedly retries. For example, increase health_check_max_retries. > Note that health_check parameters can be changed by reloading > pgpool.conf. So you can change the parameter and restore to previous > value without rebooting pgpool. Definetely a choice, but on the other hand increasing the number of retries will make pgpool unable to "quickly" catch a real failover, so I guess it is better, in my case, to deal with the "down" status after a reboot. Thanks, Luca