<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello PGPOOL Admins,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US">I have a problem with the configuration the database with connection pool pgpool II Version 3.3.4 and PostgreSQL 9.1 on the SUSE Enterprice Linux Server. I configure the pgpool.conf as follow:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">num_init_children = 500<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">max_pool = 4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">and the configurations of postgresql are:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">max_connections = 4000<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">shared_buffers = 1024MB<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">work_mem = 3MB #[1MB]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # min 64kB<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">maintenance_work_mem = 256MB #[16MB]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # min 1MB<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">max_stack_depth = 3MB #[2MB]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">checkpoint_segments = 16 #[3]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # in logfile segments, min 1, 16MB each<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">checkpoint_timeout = 5min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # range 30s-1h<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">checkpoint_completion_target = 0.9 #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">max_wal_senders = 2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">effective_cache_size = 1024MB<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">log_autovacuum_min_duration = 60s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">log_temp_files = 10MB<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">log_lock_waits = off&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # log lock waits &gt;= deadlock_timeout<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">log_statement = 'all'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">die configuration in the file &#8220;sysctl.conf&#8221; are:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># Disable response to broadcasts.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># You don't want yourself becoming a Smurf amplifier.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">net.ipv4.icmp_echo_ignore_broadcasts = 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># enable route verification on all interfaces<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">net.ipv4.conf.all.rp_filter = 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># enable ipV6 forwarding<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#net.ipv6.conf.all.forwarding = 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># increase the number of possible inotify(7) watches<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">fs.inotify.max_user_watches = 65536<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># avoid deleting secondary IPs on deleting the primary IP<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">net.ipv4.conf.default.promote_secondaries = 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">net.ipv4.conf.all.promote_secondaries = 1<o:p></o:p></span></p>
<p class="MsoNormal">kernel.shmmax=2147483648<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">vm.overcommit_memory=2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">vm.overcommit_ratio=60<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">my problem the cached of the PostgreSQL-DB Server increasing with the time till swap start it. Then comes Out of memory and no connection more from connections pool.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any help will be gratefull<o:p></o:p></span></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Muthana<span style="mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">&nbsp;<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>