logoalt Hacker News

q3kyesterday at 7:58 PM6 repliesview on HN

Yes, you can scale it quite well vertically.

But how about horizontally? It would be nice to have high availability, or even to be able to upgrade the OS and postgres itself without downtime.


Replies

hasyimibhartoday at 7:47 AM

AFAIK that's what Multigres[0] and Neki[1] are trying to solve.

[0] https://multigres.com/ [1] https://neki.dev/

levkkyesterday at 11:11 PM

Shameless plug[0].

[0] https://pgdog.dev

tuvixyesterday at 8:10 PM

Only played around with it but you can use patroni, etcd and HAproxy to achieve this. It’s a pain, but I believe there was some kind of coolify-style open source application to do this for you but I can’t for the life of me remember its name

show 2 replies
levl289yesterday at 8:19 PM

Yep, this is what I think about when “scaling” is mentioned. Maybe I’m too distributed-compute brained, but throwing CPU at a db isn’t what I was hoping would be the answer.

show 1 reply
feverzsjtoday at 5:05 AM

Only reads scale. You get (much) worse writes for sure.

literalAardvarkyesterday at 8:33 PM

Practically trivial to do in 2026 even by hand, and there are a couple of ready to use solutions that even make it automated.

If you're running it in kubernetes with cloudnativepg it's even easier.

The only thing it doesn't do well is master master replication which is why most of these does it scale posts mostly talk about how slow writes are. And they are pretty slow.