<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 14pt; color: #000000'>According to the postgresql documentation, max_connections is the maximum number of concurrent connections to the database server, but I don't understand why max_connections must satisfy the formula max_pool * num_init_children &lt;= (max_connections - superuser_reserved_connections), if num_init_children is also the concurrent connections limit to pgpool-II from clients and max_pool is the maximum number of cached connections in pgpool-II children processes. I am confuse with these parameters and I'll apreciate some answer.<br><br>Thank you very much for your time.<br>Regards.<br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">What is max_connections actually?<br>--<br>Tatsuo Ishii<br>SRA OSS, Inc. Japan<br>English: http://www.sraoss.co.jp/index_en.php<br>Japanese: http://www.sraoss.co.jp<br><br>&gt; I have a doubt about this. If pgpool-II only accepts 350 connections simultaneously, Why max_connections in postgresql.conf should be <br>&gt; max_pool * num_init_children &lt;= (max_connections - superuser_reserved_connections) <br>&gt; <br>&gt; Regards. <br>&gt; ----- Mensaje original -----<br>&gt; <br>&gt;&gt; &gt; On 15/05/12 15:24, Tatsuo Ishii wrote:<br>&gt;&gt; &gt;&gt; Yes, no swap in/out and almost see no activies.<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; If you lower num_init_children, do you see any performance<br>&gt;&gt; &gt;&gt; improvement?<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt; Weird, I've tried with num_init_children = 350, keeping max_pool =<br>&gt;&gt; &gt; 2,<br>&gt;&gt; &gt; and it seems working!<br>&gt;&gt; &gt; 350*2 = 750, how it can handle 1000 connections?<br>&gt; <br>&gt;&gt; It simply does queueing. pgpool-II uses listen(2) to accept incoming<br>&gt;&gt; connection requests from clients. If num_init_children = 350, then<br>&gt;&gt; pgpool-II can accept simulately 350 connections (not 350*2 = 700).<br>&gt;&gt; The<br>&gt;&gt; 350+1 th incoming connection will be delayed in the kernel queue<br>&gt;&gt; until<br>&gt;&gt; one of 350 existing connections is terminated thus it starts to<br>&gt;&gt; accept<br>&gt;&gt; new connection.<br>&gt;&gt; --<br>&gt;&gt; Tatsuo Ishii<br>&gt;&gt; SRA OSS, Inc. Japan<br>&gt;&gt; English: http://www.sraoss.co.jp/index_en.php<br>&gt;&gt; Japanese: http://www.sraoss.co.jp<br>&gt;&gt; _______________________________________________<br>&gt;&gt; pgpool-general mailing list<br>&gt;&gt; pgpool-general@pgpool.net<br>&gt;&gt; http://www.pgpool.net/mailman/listinfo/pgpool-general<br>&gt; <br>&gt;&gt; 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS<br>&gt;&gt; INFORMATICAS...<br>&gt;&gt; CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION<br>&gt; <br>&gt;&gt; http://www.uci.cu<br>&gt;&gt; http://www.facebook.com/universidad.uci<br>&gt;&gt; http://www.flickr.com/photos/universidad_uci<br>&gt; <br>&gt; <br>&gt; 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...<br>&gt; CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION<br>&gt; <br>&gt; http://www.uci.cu<br>&gt; http://www.facebook.com/universidad.uci<br>&gt; http://www.flickr.com/photos/universidad_uci<br><br>10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...<br>CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION<br><br>http://www.uci.cu<br>http://www.facebook.com/universidad.uci<br>http://www.flickr.com/photos/universidad_uci<br></blockquote><br></div>
<br><html>
<body>
<a href="http://www.uci.cu/">
<img src="http://universidad.uci.cu/email.gif"/>
</body>
</html>

<br></body></html>