<div dir="ltr"><div dir="ltr">Hi.</div><div dir="ltr"><br></div><div dir="ltr">Thanks for your response and help. More questions follow.</div><div dir="ltr"><br></div><div dir="ltr">On Tue, Sep 19, 2023 at 3:57 AM Bo Peng <<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</a>> wrote:<br></div><div class="gmail_quote"><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>
> What's the difference between status and pg_status? <br>
<br>
status: backend status managed by pgpool<br>
pg_status: actual backend status (taken from pg_isready. Pgpool-II 4.3 or later)<br></blockquote><div>Ok</div><div>Said so, having status:down with pg_status:up is not desirable, right? how to avoid that?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">After failover, pgpool detached the node1 and mark it's status as "down":<br><br>
After you restarted node0, you need to run "pcp_attach_node" to attach this node to pgpool.<br>
Primary node does not automatically fail back because it's a safe way to manage a cluster.<br>
<br>
<a href="https://www.pgpool.net/docs/latest/en/html/pcp-attach-node.html" rel="noreferrer" target="_blank">https://www.pgpool.net/docs/latest/en/html/pcp-attach-node.html</a><br></blockquote><div>This manual step is required only for primary nodes? What about non-primary nodes? how to automatically recovering them?</div><div><br></div><div><br></div></div></div>