<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi Tatsuo,<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">your hypothesis was exact. After deleting pgpool_status file &#39;show pool_nodes&#39; returns this output:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace"> node_id |        hostname         | port  | status | lb_weight |  role   | select_cnt | load_balance_node | replication_delay</font></div><div class="gmail_default"><font face="monospace, monospace">---------+-------------------------+-------+--------+-----------+---------+------------+-------------------+-------------------</font></div><div class="gmail_default"><font face="monospace, monospace"> 0       | <a href="http://citrix2.redevogames.com">citrix2.redevogames.com</a> | 15004 | up     | 0.250000  | primary | 1          | false             | 0</font></div><div class="gmail_default"><font face="monospace, monospace"> 1       | 10.0.0.3                | 5997  | up     | 0.750000  | standby | 2          | true              | 0</font></div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">For completeness, in debian standard installation pgpool_status is located in this path:</div><div style="font-family:verdana,sans-serif"><br></div><div><font face="verdana, sans-serif">/var/log/postgresql/</font><br></div><div style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_default" style="font-family:verdana,sans-serif">​Thank you very much for your help.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Meph​</div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 March 2017 at 00:25, Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It is possible that Pgpool-II server is looking into the old status<br>
file (&quot;pgpool_status&quot;). After stopping Pgpool-II server, remove the<br>
file and restart Pgpool-II. The location of pgpool_status varies to<br>
the installation. I&#39;m not familiar with Pgpool-II debian package, but<br>
you could find the location by looking at &quot;logdir&quot; directive in the<br>
pgpool.conf. If logdir is not found in pgpool.conf, try to locate it<br>
by using &quot;pgpool show logdir&quot;.<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_<wbr>en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.<wbr>jp</a><br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
&gt; Hi there,<br>
&gt; I installed pgpool-II 3.6.1 by debian package from postgres repository. I<br>
&gt; copied configuration from old installation from source on other debian<br>
&gt; server.<br>
&gt; A the moment I don&#39;t understand the status of my pool:<br>
&gt;<br>
&gt;  node_id |        hostname         | port  | status | lb_weight |  role   |<br>
&gt; select_cnt | load_balance_node | replication_delay<br>
&gt; ---------+--------------------<wbr>-----+-------+--------+-------<wbr>----+---------+------------+--<wbr>-----------------+------------<wbr>-------<br>
&gt;  0       | <a href="http://citrix2.redevogames.com" rel="noreferrer" target="_blank">citrix2.redevogames.com</a> | 15004 | up     | <a href="tel:0.250000" value="+390250000">0.250000</a>  | primary |<br>
&gt; 15         | true              | 0<br>
&gt;  1       | 10.0.0.3                | 5997  | unused | 0.750000  | standby |<br>
&gt; 0          | false             | 0<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; This is my configurationç<br>
&gt;<br>
&gt; backend_hostname0 = &#39;<a href="http://citrix2.redevogames.com" rel="noreferrer" target="_blank">citrix2.redevogames.com</a>&#39;<br>
&gt; backend_port0 = 15004<br>
&gt; backend_weight0 = 0.25<br>
&gt; backend_data_directory0 = &#39;/opt/postgres/dataclusters/<wbr>redevodb_test&#39;<br>
&gt; backend_flag0 = &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt;<br>
&gt; backend_hostname1 = &#39;10.0.0.3&#39;<br>
&gt; backend_port1 = 5997<br>
&gt; backend_weight1 = 0.75<br>
&gt; backend_data_directory1 = &#39;/opt/postgres/dataclusters/<wbr>redevodb&#39;<br>
&gt; backend_flag1 = &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt;<br>
&gt; #-----------------------------<wbr>------------------------------<wbr>-------------------<br>
&gt; # CONNECTION POOLING<br>
&gt; #-----------------------------<wbr>------------------------------<wbr>-------------------<br>
&gt;<br>
&gt; connection_cache = on<br>
&gt;                                    # Activate connection pools<br>
&gt;                                    # (change requires restart)<br>
&gt;<br>
&gt;                                    # Semicolon separated list of queries<br>
&gt;                                    # to be issued at the end of a session<br>
&gt;                                    # The default is for 8.3 and later<br>
&gt; reset_query_list = &#39;ABORT; DISCARD ALL&#39;<br>
&gt;                                    # The following one is for 8.2 and before<br>
&gt; #reset_query_list = &#39;ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT&#39;<br>
&gt;<br>
&gt;<br>
&gt; #-----------------------------<wbr>------------------------------<wbr>-------------------<br>
&gt; # REPLICATION MODE<br>
&gt; #-----------------------------<wbr>------------------------------<wbr>-------------------<br>
&gt;<br>
&gt; replication_mode = off<br>
&gt;                                    # Activate replication mode<br>
&gt;                                    # (change requires restart)<br>
&gt; replicate_select = off<br>
&gt;                                    # Replicate SELECT statements<br>
&gt;                                    # when in replication mode<br>
&gt;                                    # replicate_select is higher priority<br>
&gt; than<br>
&gt;                                    # load_balance_mode.<br>
&gt;<br>
&gt; insert_lock = on<br>
&gt;                                    # Automatically locks a dummy row or a<br>
&gt; table<br>
&gt;                                    # with INSERT statements to keep SERIAL<br>
&gt; data<br>
&gt;                                    # consistency<br>
&gt;                                    # Without SERIAL, no lock will be issued<br>
&gt; lobj_lock_table = &#39;&#39;<br>
&gt;                                    # When rewriting lo_creat command in<br>
&gt;                                    # replication mode, specify table name to<br>
&gt;                                    # lock<br>
&gt;<br>
&gt; # - Degenerate handling -<br>
&gt;<br>
&gt; replication_stop_on_mismatch = off<br>
&gt;                                    # On disagreement with the packet kind<br>
&gt;                                    # sent from backend, degenerate the node<br>
&gt;                                    # which is most likely &quot;minority&quot;<br>
&gt;                                    # If off, just force to exit this session<br>
&gt;<br>
&gt; failover_if_affected_tuples_<wbr>mismatch = off<br>
&gt;                                    # On disagreement with the number of<br>
&gt; affected<br>
&gt;                                    # tuples in UPDATE/DELETE queries, then<br>
&gt;                                    # degenerate the node which is most<br>
&gt; likely<br>
&gt;                                    # &quot;minority&quot;.<br>
&gt;                                    # If off, just abort the transaction to<br>
&gt;                                    # keep the consistency<br>
&gt;<br>
&gt; #-----------------------------<wbr>------------------------------<wbr>-------------------<br>
&gt; # LOAD BALANCING MODE<br>
&gt; #-----------------------------<wbr>------------------------------<wbr>-------------------<br>
&gt;<br>
&gt; load_balance_mode = on<br>
&gt;                                    # Activate load balancing mode<br>
&gt;                                    # (change requires restart)<br>
&gt; ignore_leading_white_space = on<br>
&gt;                                    # Ignore leading white spaces of each<br>
&gt; query<br>
&gt; white_function_list = &#39;get.*,check.*,is.*&#39;<br>
&gt;                                    # Comma separated list of function names<br>
&gt;                                    # that don&#39;t write to database<br>
&gt;                                    # Regexp are accepted<br>
&gt; black_function_list =<br>
&gt; &#39;nextval,setval,nextval,<wbr>setval,database_control.*,add.<wbr>*,buy.*,change.*,create.*,<wbr>delete.*,do.*,exec.*,remove.*,<wbr>send.*,set.*,update.*,<wbr>generate.*&#39;<br>
&gt;                                    # Comma separated list of function names<br>
&gt;                                    # that write to database<br>
&gt;                                    # Regexp are accepted<br>
&gt;<br>
&gt; database_redirect_preference_<wbr>list = &#39;&#39;<br>
&gt;                                                                    # comma<br>
&gt; separated list of pairs of database and node id.<br>
&gt;                                                                    #<br>
&gt; example: postgres:primary,mydb[0-4]:1,<wbr>mydb[5-9]:2&#39;<br>
&gt;                                                                    # valid<br>
&gt; for streaming replicaton mode only.<br>
&gt;<br>
&gt; app_name_redirect_preference_<wbr>list = &#39;&#39;<br>
&gt;                                                                    # comma<br>
&gt; separated list of pairs of app name and node id.<br>
&gt;                                                                    #<br>
&gt; example: &#39;psql:primary,myapp[0-4]:1,<wbr>myapp[5-9]:standby&#39;<br>
&gt;                                                                    # valid<br>
&gt; for streaming replicaton mode only.<br>
&gt; allow_sql_comments = off<br>
&gt;                                                                    # if on,<br>
&gt; ignore SQL comments when judging if load balance or<br>
&gt;                                                                    # query<br>
&gt; cache is possible.<br>
&gt;                                                                    # If<br>
&gt; off, SQL comments effectively prevent the judgment<br>
&gt;                                                                    # (pre<br>
&gt; 3.4 behavior).<br>
&gt;<br>
&gt; #-----------------------------<wbr>------------------------------<wbr>-------------------<br>
&gt; # MASTER/SLAVE MODE<br>
&gt; #-----------------------------<wbr>------------------------------<wbr>-------------------<br>
&gt;<br>
&gt; master_slave_mode = on<br>
&gt;                                    # Activate master/slave mode<br>
&gt;                                    # (change requires restart)<br>
&gt; master_slave_sub_mode = &#39;stream&#39;<br>
&gt;                                    # Master/slave sub mode<br>
&gt;                                    # Valid values are combinations slony or<br>
&gt;                                    # stream. Default is slony.<br>
&gt;                                    # (change requires restart)<br>
&gt;<br>
&gt; # - Streaming -<br>
&gt;<br>
&gt; sr_check_period = 10<br>
&gt;                                    # Streaming replication check period<br>
&gt;                                    # Disabled (0) by default<br>
&gt; sr_check_user = &#39;postgres&#39;<br>
&gt;                                    # Streaming replication check user<br>
&gt;                                    # This is necessary even if you disable<br>
&gt;                                    # streaming replication delay check with<br>
&gt;                                    # sr_check_period = 0<br>
&gt;<br>
&gt;<br>
&gt; Why my standby node are note used? Are there some errors in configuration?<br>
&gt;<br>
&gt; Can you help me plese?<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt;<br>
&gt; Meph<br>
</div></div></blockquote></div><br></div></div>