Question

I am trying to figure out how to build a scalable database system. I settled on using postgresql and am trying to figure out how to implement load balancing. I looked into HAProxy, which I really liked. I noticed that there were multiple different configurations of postgresql http://www.postgresql.org/docs/8.3/static/high-availability.html. Which one would be the best to link with HAProxy?

Was it helpful?

Solution

I have used HAProxy for MySQL. But that was because there were no options tailor-made for MySQL. And HAProxy does a great job. For PostgreSQL, there are quite a few tailor-made options. May be you could have a look at pgpool?

Are you looking for scalability alone, or failover too? Which version of PostgreSQL are you using?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top