<div dir="ltr"><div dir="ltr">Hi, thanks for your answer!<div><br></div><div>No new lines were added in the logs when I ran the 'pcp_attach_node' command.</div><div><br></div><div>If I ran the same command on standby nodes I was receiving a message related to a failback from a PgPool process, but I checked its PID and it didn't exist (sorry, I've not written the exact message down and I cannot paste it exactly here).</div><div><br></div><div>I've then restarted PgPool on all three nodes and everything is now up and running.</div><div><br></div><div>Thank you anyway!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 12 dic 2022 alle ore 15:39 Bo Peng <<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
> Hi,<br>
> I have a 3-nodes PgPool 4.2.10 cluster connected to a 3-nodes PostgreSQL<br>
> 12.13 cluster.<br>
> I am in streaming replication mode, the streaming replication is actually<br>
> working well without any errors.<br>
> <br>
> Suddenly PgPool began to recognise the node_id 2 as down, but it is up and<br>
> running and reachable from the PgPool node itself:<br>
> =================================================================<br>
> bash-4.4$ psql -h 127.0.0.1 -p 5432 -U pgpool -c "show pool_nodes;" postgres<br>
>  node_id |       hostname        | port | status | lb_weight |  role   |<br>
> select_cnt | load_balance_node | replication_delay | replication_state |<br>
> repl<br>
> ication_sync_state | last_status_change<br>
> ---------+-----------------------+------+--------+-----------+---------+------------+-------------------+-------------------+-------------------+-----<br>
> -------------------+---------------------<br>
>  0       | <a href="http://postgres1.my.domain.com" rel="noreferrer" target="_blank">postgres1.my.domain.com</a> | 5432 | up     | 0.333333  | primary |<br>
> 2801705    | true              | 0                 |                   |<br>
> <br>
>                    | 2022-12-06 20:28:45<br>
>  1       | <a href="http://postgres2.my.domain.com" rel="noreferrer" target="_blank">postgres2.my.domain.com</a> | 5432 | up     | 0.333333  | standby |<br>
> 0          | false             | 0                 |                   |<br>
> <br>
>                    | 2022-12-06 20:28:45<br>
>  2       | <a href="http://postgres3.my.domain.com" rel="noreferrer" target="_blank">postgres3.my.domain.com</a> | 5432 | down   | 0.333333  | standby |<br>
> 0          | false             | 0                 |                   |<br>
> <br>
>                    | 2022-12-06 20:26:32<br>
> (3 rows)<br>
> =================================================================<br>
<br>
To figure out why node2 is marked "down",<br>
could you share your pgpool logs?<br>
<br>
> The PostgreSQL node is up and running and reachable from the PgPool node<br>
> itself:<br>
> =================================================================<br>
> bash-4.4$ psql -<a href="http://hpostgres3.my.domain.com" rel="noreferrer" target="_blank">hpostgres3.my.domain.com</a> -Upgpool -W -dpostgres -c'SELECT<br>
> pg_is_in_recovery();'<br>
> Password for user pgpool:<br>
>  pg_is_in_recovery<br>
> -------------------<br>
>  t<br>
> (1 row)<br>
> =================================================================<br>
> <br>
> I tried to attach it using pcp_attach_node, but nothing happens (no errors<br>
> and no logs into the PgPool log file even if it is configured as debug1):<br>
> =================================================================<br>
> bash-4.4$ pcp_attach_node 2 -h localhost -p 9898 -w -v<br>
> pcp_attach_node -- Command Successful<br>
> =================================================================<br>
> <br>
> Could you help me to understand what's wrong, please?<br>
<br>
Normally if you run pcp command, the related log will<br>
be output into pgpool logs.<br>
Could you share the full logs to figure out the cause?<br>
<br>
-- <br>
Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>><br>
SRA OSS LLC<br>
<a href="https://www.sraoss.co.jp/" rel="noreferrer" target="_blank">https://www.sraoss.co.jp/</a><br>
</blockquote></div></div>