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.

PostgreSQL High Availability Solutions – Part 1: Jepsen Test and Patroni

158 pointsby wb141236 months ago

11 comments

emmanueloga_5 months ago
Is anyone here using YugabyteDB for high-availability Postgres?<p>It seems like a compelling option:<p>* Much closer to Postgres compatibility than CockroachDB.<p>* A more permissive license.<p>* Built-in connection manager [1], which should simplify deployment.<p>* Supports both high availability and geo-distribution, which is useful if scaling globally becomes necessary later.<p>That said, I don&#x27;t see it mentioned around here often. I wonder if anyone here has tried it and can comment on it.<p>--<p>1: <a href="https:&#x2F;&#x2F;docs.yugabyte.com&#x2F;preview&#x2F;explore&#x2F;going-beyond-sql&#x2F;connection-mgr-ysql&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.yugabyte.com&#x2F;preview&#x2F;explore&#x2F;going-beyond-sql&#x2F;c...</a>
评论 #42356567 未加载
评论 #42355809 未加载
评论 #42356520 未加载
评论 #42356350 未加载
评论 #42356026 未加载
hitpointdrew5 months ago
The best way I have found is to setup keepalived -&gt; pgbouncer -&gt; Postgres. Use repmgr to manage replication and barman for backups. Setup a VIP with keepalived with a small script that checks if the server is primary. You loose about 7-9 pings during a failover, have keepalived check about every 2 seconds and flip after 3 consecutive failures.
no1youknowz5 months ago
Haven&#x27;t used it yet. But seeing as both Yugabyte and Cockroach being mentioned...<p>pgEdge: <a href="https:&#x2F;&#x2F;github.com&#x2F;pgedge&#x2F;pgedge">https:&#x2F;&#x2F;github.com&#x2F;pgedge&#x2F;pgedge</a> Demo: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;Gpty7yNlwH4?t=1873" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;Gpty7yNlwH4?t=1873</a><p>Not affiliated with them.<p>I recall that aspirationally pgEdge aims to be compatible with the latest pg version or one behind.
nh25 months ago
Great that nobody can track, or easily contribute to, the underlying postgres bug, because postgres has no issue tracker.<p>Keeps the number of reported bugs nice and low. The discussion of critical bugs that lose your data is left to HN and Twitter threads instead.
评论 #42357142 未加载
评论 #42358551 未加载
hamandcheese5 months ago
&gt; If the PostgreSQL backend is cancelled while waiting to acknowledge replication (as a result of packet cancellation due to client timeout or backend failure) transaction changes become visible for other backends. Such changes are not yet replicated and may be lost in case of standby promotion.<p>This sounds like the two generals problem, which has no solution. But I may be misunderstanding.
评论 #42354869 未加载
评论 #42357109 未加载
arcastroe5 months ago
&gt; require mandatory telemetry collection for free version<p>Couldn&#x27;t one simply define kubernetes network policies to limit egress from CockroachDB pods?
logifail5 months ago
I&#x27;m currently looking for similar info but for MySQL&#x2F;MariaDB for an IoT side project ... any suggestions?
评论 #42355377 未加载
评论 #42356818 未加载
评论 #42358252 未加载
评论 #42355867 未加载
nh25 months ago
It would be awesome if you could do the same test with Stolon!
评论 #42361250 未加载
karlmdavis5 months ago
What an absolutely delightful little project and write up.
ptman5 months ago
Anyone familiar with autobase.tech?
ahoka5 months ago
Is there any alternative to Jepsen that does not involve writing spaghetti Clojure code?
评论 #42357968 未加载