<div dir="ltr"><span class="Apple-style-span" style>Hi , </span><div style><br></div><div style>I am seeing slow performance when do pgbench test for Selects  via pgpoolII compared to performing same test over the backend . </div>
<div style><br></div><div style>The setup is following . </div><div style><br></div><div style>1 Master  - 2 Salve  Streaming replication setup . </div><div style><br></div><div style>PgpoolII resides on Master node . </div>
<div style><br></div><div style>All node have exact software versions and hardware . </div><div style><br></div><div style>Postgres version  (9.1.3)</div><div style>pgpoolII version  3.2alpha1  ( loadbalancing enabled ) </div>
<div style><br></div><div style><br></div><div style>These are pgbench test , there is a huge difference with and without pgpoolII . Any idea whats the cause ? Shouldnt the select test with pgpool be able to handle more transactions than single backend ?</div>
<div style><br></div><div style><b>Test 1 :</b></div><div style><div><i>$ pgbench -p9999 -T 30 -S -n -c 12 bench_replication</i></div><div><i>transaction type: SELECT only</i></div><div><i>scaling factor: 1</i></div><div>
<i>query mode: simple</i></div><div><i>number of clients: 12</i></div><div><i>duration: 30 s</i></div><div><i>number of transactions actually processed: 562902</i></div><div><i>tps = 18762.431859 (including connections establishing)</i></div>
<div><i>tps = 18791.333944 (excluding connections establishing)</i></div><div><i><br></i></div><div><i>$ pgbench -p5432 -h 10.52.6.142 -T 30 -S -n -c 12 bench_replication</i></div><div><i>transaction type: SELECT only</i></div>
<div><i>scaling factor: 1</i></div><div><i>query mode: simple</i></div><div><i>number of clients: 12</i></div><div><i>duration: 30 s</i></div><div><i>number of transactions actually processed: 1133075</i></div><div><i>tps = 37767.193960 (including connections establishing)</i></div>
<div><i>tps = 37800.532288 (excluding connections establishing)</i></div></div><div style><br></div><div style><b>Test 2: -C</b></div><div style><div><i>$ pgbench -p5432 -h 10.52.6.142 -t 20 -S -n -C -c 10 bench_replication</i></div>
<div><i>transaction type: SELECT only</i></div><div><i>scaling factor: 1</i></div><div><i>query mode: simple</i></div><div><i>number of clients: 10</i></div><div><i>number of transactions per client: 20</i></div><div><i>number of transactions actually processed: 200/200</i></div>
<div><i>tps = 386.054924 (including connections establishing)</i></div><div><i>tps = 28364.770954 (excluding connections establishing)</i></div><div><br></div><div><i>$ pgbench -p9999  -t 20 -S -n -C -c 10 bench_replication</i></div>
<div><i>transaction type: SELECT only</i></div><div><i>scaling factor: 1</i></div><div><i>query mode: simple</i></div><div><i>number of clients: 10</i></div><div><i>number of transactions per client: 20</i></div><div><i>number of transactions actually processed: 200/200</i></div>
<div><i>tps = 303.073927 (including connections establishing)</i></div><div><i>tps = 3775.508278 (excluding connections establishing)</i></div></div><div><br></div>-- <br><div dir="ltr">Syed Atif Ali<br>Desk: 971 4 4493131</div>
<br>
</div>