<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 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {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 2.0cm 2.0cm 2.0cm;}
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=IT link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi to All!<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-US>Can you help me to increase performance of my pgpool installation?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I&#8217;ve installed pgpool with postgres streaming replication hot_standby on but now I&#8217;ve poor performance.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>If I test with pgbench postgres directly with his command<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>/usr/pgsql-9.4/bin/pgbench -h myhost -U postgres -c 4 -j 2 -T 60 -S prova<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>Received output<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>starting vacuum...end.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>transaction type: SELECT only<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>scaling factor: 100<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>query mode: simple<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>number of clients: 4<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>number of threads: 2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>duration: 60 s<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>number of transactions actually processed: 893740<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>latency average: 0.269 ms<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>tps = 14895.495617 (including connections establishing)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>tps = 14897.984048 (excluding connections establishing)<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><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>if I connect to postgresql trought pgpool <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>/usr/pgsql-9.4/bin/pgbench -h myhost -p 9999 -U postgres -c 4 -j 2 -T 60 -S prova <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Received output<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>starting vacuum...end.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>transaction type: SELECT only<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>scaling factor: 100<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>query mode: simple<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>number of clients: 4<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>number of threads: 2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>duration: 60 s<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>number of transactions actually processed: 767111<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>latency average: 0.313 ms<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>tps = 12785.033109 (including connections establishing)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>tps = 12787.297287 (excluding connections establishing)<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>with hot_standby on of postgresql and load balancing on of pgpool read only query become faster..it&#8217;s right?<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>I tried to exclude standby server from pgpool pool and I&#8217;ve retried test but I&#8217;ve the same latency<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>Can you help me to increase performance please?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>There is parameter to set on postgresql.conf or in pgpool.conf? <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>Thanksss<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><o:p>&nbsp;</o:p></span></p><p class=MsoNormal>A.Baccanelli<o:p></o:p></p></div></body></html>