<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>i have a question about optimization of pgpool-II.<br><br></div>I have 4 servers:<br></div>1] pgpool-II server<br></div>2] master db<br></div>3] slave01 db<br></div>4] slave02 db<br><br></div>I have master/slave + loadbalancing (same priority for each server)<br><br></div>And also i have:<br></div>1] postgresql server (same version 9.3 like in pgpool)<br><br></div><div>INFO: every node is on the same local network and has the same parameters: 1 core, 4GB RAM, postgres 9.3 and java 1.7, application is in java<br></div><div><br></div>I have 2 specific scenarios for testing (maybe db cache can be the problem):<br></div>1] 50000 values from 1 table in 1 query<br></div><div>2] 50000 values from 1 table in 50000 queries <br></div><br></div>For scenario 1 I am using 2 different callings:<br></div>1] If I am calling pgpool server 10x by my application (so some of them are on master, some on slave1 and some on slave2) I get time about 2:15. (time when all processes end)<br></div>2] If I am calling one postgreSQL server 10x by my application (so all processes are on 1 DB), i get time about 1:45.<br><br></div><div>For scenarion 2:<br></div><div>1] Calling pgpool server 10x by my application, time is 13:39 +- for all<br></div><div>2] Calling postgresql server 10x by my application, time is 6:50 +- for all <br></div><div><br></div><div>Do you have some idea how is that possible and what i can do to optimize pgpool-II to be better in distribution of read queries than 1 postgreSQL DB?<br></div><div>Maybe I have something bad in settings of pgpool-II server.<br><br></div><div>Thanks for any advice,<br>Michal Stava<br><br></div><div>PS: pgpool.conf in attachment<br></div><div>in pgpool log there is debug info so maybe this can be the problem, but debug is set on 0?<br></div><div><br></div></div></div>