title: pgbouncer 1.7 with master and slave
body: <p>I am new in using pgbouncer 1.7 and I want to configure it with master slave configuration.</p>
  
  <p>I have configured postgres 9.3 streaming replication using repmgr and I want to use pgbouncer for load balancing and connection pooling so that it automatically switches to slave if master goes down . So how should I configure it for the same. I have both master and slave on diff servers and og bouncer on diff servers. Do i need to install pgbouncer on both master and slave servers also for it to work or just installing on a diff server will work .</p>
  
  <p>I have tried many online tutorial for it but sadly didnt found any suggestions. Please if anyone can help.</p>
  
  <p>Thanks in advance,
  Mohit</p>