TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Replicated PostgreSQL with pgpool2

73 pointsby secureover 10 years ago

9 comments

ruckusingover 10 years ago
Another solution is wal-e[1] which handles continuous archiving. It was built by the Heroku guys and as such is battle-tested.<p>I use wal-e myself and its indispensable and easy to use.<p><a href="https://github.com/wal-e/wal-e" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;wal-e&#x2F;wal-e</a>
评论 #8251858 未加载
rpedelaover 10 years ago
Why isn&#x27;t the built-in master&#x2F;slave replication plus WAL archiving to something like S3 sufficient?
评论 #8250470 未加载
imglorpover 10 years ago
See also bucardo.<p><a href="http://bucardo.org/wiki/Bucardo" rel="nofollow">http:&#x2F;&#x2F;bucardo.org&#x2F;wiki&#x2F;Bucardo</a>
narsilover 10 years ago
We run a similar setup at Kloudless [1]. We use PgBouncer [2] for connection pooling, which connects to pgpool2 to load balance between our Postgres servers. We&#x27;ve noticed PgBouncer is more performant at handling thousands of simultaneous connections.<p>[1] <a href="https://kloudless.com" rel="nofollow">https:&#x2F;&#x2F;kloudless.com</a> [2] <a href="http://wiki.postgresql.org/wiki/PgBouncer" rel="nofollow">http:&#x2F;&#x2F;wiki.postgresql.org&#x2F;wiki&#x2F;PgBouncer</a>
评论 #8253291 未加载
adamnemecekover 10 years ago
Seems down Google cache link<p><a href="http://webcache.googleusercontent.com/search?q=cache:MPIiThxiSD8J:michael.stapelberg.de/Artikel/replicated_postgresql_with_pgpool+&amp;cd=1&amp;hl=en&amp;ct=clnk&amp;gl=us" rel="nofollow">http:&#x2F;&#x2F;webcache.googleusercontent.com&#x2F;search?q=cache:MPIiThx...</a>
评论 #8250442 未加载
mrmondoover 10 years ago
I&#x27;ve done a lot of work with pgpool over the past year, be aware there are lots of situations where it won&#x27;t work for you. For example if your devs don&#x27;t write their own SQL and instead use a framework with limited control you&#x27;re going to have a bad time.
评论 #8250405 未加载
RA_Fisherover 10 years ago
Fantastic write up, really. Surely, there has to be a simpler way, no?
评论 #8250483 未加载
评论 #8256355 未加载
raartsover 10 years ago
The problem with these setups is that: &#x27;There Are Many Ways To Do It&#x27;(tm), and: &#x27;You Really Need To Test For Your Use-Case&#x27;(tm). I need to read and understand everything to decide what&#x27;s best in my case. And then you need to write a lot of scripts, do a <i>lot</i> of time-consuming testing, and document everything.<p>Scalable, Reliable PostgreSQL is not really there yet.<p>There are many ways to do it, yes, but most people just want one thing: the db failing over in case it goes down.
评论 #8251325 未加载
评论 #8251076 未加载
xordonover 10 years ago
Surely there must be an easier way?
评论 #8250420 未加载
评论 #8250267 未加载