by pjungwir · 11y ago · 0 comments
I agree with pilif that you almost always want to failover the db manually.
I agree with teraflop that just because etcd gives strong guarantees, that doesn't mean your application logic built on top of etcd primitives shares them. So you have to be careful about your reasoning there.
I'm curious if you're doing anything to mitigate haproxy being a single point of failure?
One thing I've had to fix in other people's HA PG setups is ease of getting back to HA after a failover. You lose the master and promote the slave, and now you've just got a master. Ideally it should be easy to just launch another db instance and everyone keeps going. I think this setup achieves that, and that's great!
Manual failover is often a lot safer, automatic systems have a nasty habit of not doing what you expect them to and trashing your database / losing data.
I'm curious about HAProxy being a single point of failure as well. What happens when it fails?