<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font face="Arial">Hi,</font></p>
    <p><span id="result_box" class="" lang="en"><span>Thank you very
          much for your help.</span> <span class="">Patch solved the
          problem :)</span></span></p>
    <br>
    <div class="moz-cite-prefix">W dniu 11.01.2018 o 15:05, Bo Peng
      pisze:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20180111230554.a614e1238ff09ea4eec37f49@sraoss.co.jp">
      <pre wrap="">Hi,

I think the problem is that Pgpool-II wasn't stopped by using fast mode.
if there are some connections from clients, Pgpool-II will wait until 
all connections exit. This caused that Pgpool-II hangs up.

Pgpool-II should use fast mode to stop and restart.

Could you try to change the /etc/sysconfig/pgpool file like this:

------
- #STOP_OPTS=" -m fast"  
+ STOP_OPTS=" -m fast"  
------

And we also find the problem at pgpoolAdmin that stop mode didn't work correctly.
Could you try the attached patch to pgpoolAdmin.

On Thu, 11 Jan 2018 10:10:30 +0100
Aleksander Englert <a class="moz-txt-link-rfc2396E" href="mailto:aleksander_englert@skg.pl">&lt;aleksander_englert@skg.pl&gt;</a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Thanks for your interest in the matter. The active passive solution is 
not possible. As for the pgpool reboot, in version 3.2.3 we used the 
fast option and all connections were closed. Pgpool restarted nicely. So 
something changed in newer versions?


W dniu 11.01.2018 o 09:53, Piotr Gbyliczek pisze:
</pre>
        <blockquote type="cite">
          <pre wrap="">

                Piotr Gbyliczek
------------------------------------------------------------------------
Solutions Engineer
ddi. *08454 210444*
t. *0845 123 2222*
e. *P.Gbyliczek@node4.co.uk*         *Nottingham Office*
Node4 Ltd, The POD,
10 Bottle Ln, Nottingham, NG1 2HL

        
Visit <a class="moz-txt-link-abbreviated" href="http://www.node4.co.uk">www.node4.co.uk</a> <a class="moz-txt-link-rfc2396E" href="http://www.node4.co.uk">&lt;http://www.node4.co.uk&gt;</a>


        
Visit <a class="moz-txt-link-abbreviated" href="http://www.node4.co.uk">www.node4.co.uk</a> <a class="moz-txt-link-rfc2396E" href="http://www.node4.co.uk">&lt;http://www.node4.co.uk&gt;</a>

                
Visit Node4 on Twitter <a class="moz-txt-link-rfc2396E" href="http://www.twitter.co.uk/Node4Ltd">&lt;http://www.twitter.co.uk/Node4Ltd&gt;</a>

                
Visit Node4 on Linkedin <a class="moz-txt-link-rfc2396E" href="https://www.linkedin.com/company/node4-ltd">&lt;https://www.linkedin.com/company/node4-ltd&gt;</a>

                
Visit Node4 on Facebook <a class="moz-txt-link-rfc2396E" href="http://www.facebook.com/Node4">&lt;http://www.facebook.com/Node4&gt;</a>

                

<a class="moz-txt-link-rfc2396E" href="https://www.node4.co.uk/events/how-to-solve-your-database-management-challenge/">&lt;https://www.node4.co.uk/events/how-to-solve-your-database-management-challenge/&gt;</a> 


        
<a class="moz-txt-link-rfc2396E" href="https://www.node4.co.uk/events/leeds-open-day/">&lt;https://www.node4.co.uk/events/leeds-open-day/&gt;</a>

On Thursday, 11 January 2018 08:38:44 GMT Aleksander Englert wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">Thanks for fast reaction. The problem is that as soon as I connect to
pgpool only with pgadmin, restart is not possible, pgpool is hanging.
When I close the pgadmin, pgpool is then turned off and waits to start.
The entire process path is shown in the following step-by-step
screenshots. Earlier, pgpool version 3.2.3 was used and a similar
problem did not occur. I will just say that the topic is very important
to us, because it is about using pgpool in the application used in the
Ministry of Finance.
</pre>
          </blockquote>
          <pre wrap="">
AFAIK pgpool does wait for connections to be closed on stopping.

The timeout that Tatsuo suggested should help with that, but setting 
it too
low may cause some legitimatelly idle connections being cut off.

You can have a look at this (from pgpool --help) :

=================
Stop options:
-m, --mode=SHUTDOWN-MODE
Can be "smart", "fast", or "immediate"

Shutdown modes are:
smart quit after all clients have disconnected
fast quit directly, with proper shutdown
immediate the same mode as fast
=================

and set appropriate option in /etc/sysconfig/pgpool or in pgpool.conf 
(not
sure if that is possible there)

Another solution may be to add another pgpool server and use watchdog. 
I've
seen pgpool hanging on stop all the time, but since we use it normally in
active passive pair, watchdog detects that pgpool is stopped and passive
pgpool pick ups the active role, thus allowing new connections to go 
through
to database. I usually wait few minutes on the former active server 
and then
kill pgppool processes there, then start pgpool back as passive server in
pair.


Regards,
Piotr
-- 

Node4 Limited is registered in England No: 04759927 and has its 
registered office at Millennium Way, Pride Park, Derby, DE24 8HZ
The information contained in this email is confidential and is 
intended for the exclusive use of the email addressee shown.
If you are not the addressee, any disclosure, reproduction, 
distribution or other dissemination or use of this communication is 
strictly prohibited.
If you have received this mail in error, please notify our mail 
manager at <a class="moz-txt-link-abbreviated" href="mailto:abuse@node4.co.uk">abuse@node4.co.uk</a> <a class="moz-txt-link-rfc2396E" href="mailto:abuse@node4.co.uk">&lt;mailto:abuse@node4.co.uk&gt;</a> and delete it 
from your system.
Opinions expressed in this email are those of the individual not the 
company, unless specifically indicated to that effect.
------------------------------------------------------------------------
This email has been scanned by Node4's Email Security System.
------------------------------------------------------------------------
This email message has been delivered safely and archived online by 
Mimecast.



_______________________________________________
pgpool-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a>
<a class="moz-txt-link-freetext" href="http://www.pgpool.net/mailman/listinfo/pgpool-general">http://www.pgpool.net/mailman/listinfo/pgpool-general</a>
</pre>
        </blockquote>
        <pre wrap="">
-- 
Pozdrawiam / Best regards
Aleksander Englert
<a class="moz-txt-link-abbreviated" href="mailto:aleksander_englert@skg.pl">aleksander_englert@skg.pl</a>
tel. 33/8281168
kom. +48692469269

SKG S.A.
43-309 Bielsko-Biała, Al. Armii Krajowej 336
tel. +48 33 8281-100, fax +48 33 8281-105
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:firma@skg.pl">firma@skg.pl</a>

Nr KRS: 47940, Sąd Rejonowy w Bielsku-Białej, VIII Wydział Gospodarczy KRS
NIP: 547-12-57-936, Regon: 070711270
Kapitał zakładowy: 500 000 zł w całości opłacony

Niniejsza wiadomość może zawierać informacje prawnie chronione. 
Wiadomość skierowana jest wyłącznie do
adresata/ adresatów określonych wyżej i stanowi własność nadawcy. 
Odbiorca, który otrzymał tę wiadomość
przypadkowo, proszony jest o jej nie rozpowszechnianie, a następnie 
poinformowanie nadawcy i jej
usunięcie. Rozpowszechnianie, kopiowanie, ujawnianie lub przekazywanie 
osobom trzecim w jakiejkolwiek
formie informacji zawartych w niniejszej wiadomości w całości lub części 
jest zakazane.

The information contained in this message may be privileged and 
confidential and protected from disclosure.
Information included in that message is addressed only to the 
addressee/addressees determined above and is the property
of the sender. If you have received this communication in error, please 
notify the sender immediately by replaying
to the message and deleting it from your computer. Any dissemination, 
distribution or copying of this communication
to the third parties is strictly prohibited.
</pre>
      </blockquote>
      <pre wrap="">

</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      Pozdrawiam / Best regards<br>
      Aleksander Englert<br>
      <a class="moz-txt-link-abbreviated" href="mailto:aleksander_englert@skg.pl">aleksander_englert@skg.pl</a><br>
      tel. 33/8281168<br>
      kom. +48692469269<br>
      <br>
      SKG S.A. <br>
      43-309 Bielsko-Biała, Al. Armii Krajowej 336<br>
      tel. +48 33 8281-100, fax +48 33 8281-105<br>
      e-mail: <a class="moz-txt-link-abbreviated" href="mailto:firma@skg.pl">firma@skg.pl</a><br>
      <br>
      Nr KRS: 47940, Sąd Rejonowy w Bielsku-Białej, VIII Wydział
      Gospodarczy KRS<br>
      NIP: 547-12-57-936, Regon: 070711270<br>
      Kapitał zakładowy: 500 000 zł w całości opłacony<br>
      <br>
      Niniejsza wiadomość może zawierać informacje prawnie chronione.
      Wiadomość skierowana jest wyłącznie do<br>
      adresata/ adresatów określonych wyżej i stanowi własność nadawcy.
      Odbiorca, który otrzymał tę wiadomość<br>
      przypadkowo, proszony jest o jej nie rozpowszechnianie, a
      następnie poinformowanie nadawcy i jej<br>
      usunięcie. Rozpowszechnianie, kopiowanie, ujawnianie lub
      przekazywanie osobom trzecim w jakiejkolwiek<br>
      formie informacji zawartych w niniejszej wiadomości w całości lub
      części jest zakazane.<br>
      <br>
      The information contained in this message may be privileged and
      confidential and protected from disclosure.<br>
      Information included in that message is addressed only to the
      addressee/addressees determined above and is the property<br>
      of the sender. If you have received this communication in error,
      please notify the sender immediately by replaying<br>
      to the message and deleting it from your computer. Any
      dissemination, distribution or copying of this communication<br>
      to the third parties is strictly prohibited. </div>
  </body>
</html>