<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I&#39;m new to PgPool, and read the docs. Not too sure I&#39;ve got it all, so I&#39;m asking to you guys help me understand.<br></div>
<br>Today I have a web_app running Django in one server (webapp1) w/ PostreSQL DB on other machine  (db_server1 - same network).</div><br></div>My intention is to have replication (and if possible also load balance).<br></div>
I already have another machine with the very same configuration as the one running Postgres (db_server2).<br><br></div>The idea was: Install Postgres in db_server2, and PgPool in both db_server1 and db_server2<br></div>Is this the way it should be? Which db_server should I point Django to? In case the pg_pool server I&#39;m poiting to goes down, is there any configuration that can point to multiple servers?<br>
<br></div>Or pgPool should be running on webapp1?<br></div>My doubt is because I plan to have webapp2 .. webappN as I need to grow... And in this case I&#39;ll have many pgPool services. Which would &#39;control&#39; the primary/stand-by Postgres?<br>
<br></div>Thanks for any help...<br></div>Felipe<br></div>Sp/Brazil<br><br><br></div>