Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hey folks, I'm bashing my head to configure load balancing stuff between two database servers. I have no clue whether, I can find any mechanism to implement this. I already tried to implement Heart beat clustering but it requires virtual Ip wherein I can't create virtual IP or assign my own IP address in amazon EC2. Is there a way to configure PostgreSQL database servers in similar to Amazon load balancing kind of thing ? If so, please suggest the solution.

Thanks in advance.

share|improve this question
For load balancing, what kind of load are you balancing? Reads or writes? If you need to balance writes you'll need a multi-master replication solution. Otherwise if it's mostly read only, there are plenty of master-slave solutions which allow you to write to the master then split up reads across multiple slaves. – DerfK May 16 '11 at 15:13

Take a look at pgPool, works great.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.