<html><head></head><body><div class="ydp27056c46yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div id="ydp27056c46yiv6910111429"><div><div class="ydp27056c46yiv6910111429ydpd6be4b0fyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><div>Hi Dimitri</div><div><br></div><div>Did you set-up the health checks ?</div><div><br clear="none"></div><div>In my pgpool config I have the following parameters related to the health checks</div><div><span></span><pre class="ydp27056c46yiv6910111429ydp801fcaaehighlight"><code>health_check_period = 10
health_check_timeout = 10
health_check_user = 'hcuser'
health_check_password = 'hcuser'
health_check_database = 'postgres'
health_check_max_retries = 5
health_check_retry_delay = 1</code></pre><code>I&nbsp;</code> also put the parameter <span><span></span></span><pre class="ydp27056c46yiv6910111429ydp801fcaaehighlight"><code>failover_on_backend_error = 'off' </code></pre><div>And I created the user hcuser on the postgres database</div><div><br clear="none"></div><div>When the standby is stopped, pgpool tries to reconnect x times (depending on health_check_max_retries parameter) then it does the failover script (the script does not have to do something because it is not the primary failing) and it detaches the standby. When the standby is started again, pgpool does a failback script (I do nothing in this script) and then it attaches the standby again</div></div><div><br></div><div>I believe that if you don't set-up the health-checks pgpool does not detach the standby when it fails (not sure if it is as-designed or not)</div><div><br></div><div class="ydp27056c46yiv6910111429ydpd6be4b0fsignature">Pierre</div></div>
        <div><br clear="none"></div><div><br clear="none"></div>
        
        </div><div class="ydp27056c46yiv6910111429ydp91a4f78ayahoo_quoted" id="ydp27056c46yiv6910111429ydp91a4f78ayahoo_quoted_4530071327">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                
            </div>
        </div></div></div></div><div class="ydp173286f0yiv6910111429yqt0960235458" id="ydp173286f0yiv6910111429yqt13711"><div>
                    On Tuesday, March 26, 2019, 3:58:52 PM GMT+1, Dmitry Medvedev &lt;dm.dm.medvedev@gmail.com&gt; wrote:
                </div>
                <div><br clear="none"></div>
                <div><br clear="none"></div>
                <div><div id="ydp173286f0yiv6910111429ydp91a4f78ayiv3818813086"><div dir="ltr"><div>Hello to everyone.</div><div><br clear="none"></div><div>A couple of days I've spent trying to understand how pgpool-II works.</div><div>Tell me, please, principle of operation when slave node goes down.</div><div>I've read tons of manuals and when master node in my test cluster goes down (or master's network interface goes down) - pgpool does failover actions. Everything is OK and works as expected.</div><div>But when slave node goes down - pgpool does nothing at all and I receive such answer</div><div><br clear="none"></div><div>test=# show pool_nodes;</div><div>&nbsp;node_id |&nbsp; hostname&nbsp; &nbsp;| port | status | lb_weight |&nbsp; role&nbsp; | select_cnt | load_balance_node | replication_delay | last_status_change</div><div>---------+-------------+------+--------+-----------+--------+------------+-------------------+-------------------+---------------------</div><div>&nbsp;0&nbsp; &nbsp; &nbsp; &nbsp;| 172.28.30.6 | 5434 | up&nbsp; &nbsp; &nbsp;| 0.500000&nbsp; | master | 3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | true&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| 2019-03-26 17:04:12</div><div>&nbsp;1&nbsp; &nbsp; &nbsp; &nbsp;| 172.28.30.7 | 5434 | up&nbsp; &nbsp; &nbsp;| 0.500000&nbsp; | slave&nbsp; | 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | false&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| 2019-03-26 17:04:12</div><div>(2 rows)</div><div><br clear="none"></div><div><br clear="none"></div><div>At the same time slave node is completely down. Not "up"! select * from pg_stat_replication showing (0 rows)</div><div><br clear="none"></div><div>Why does pgpool-II does nothing when slave node goes down and how I can change it?</div></div></div>_______________________________________________<br clear="none">pgpool-general mailing list<br clear="none"><a shape="rect" href="mailto:pgpool-general@pgpool.net" rel="nofollow" target="_blank">pgpool-general@pgpool.net</a><br clear="none"><a shape="rect" href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="nofollow" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br clear="none"></div></div></body></html>