Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This sounds like a split-brain disaster waiting to happen, when a network partition between the two load balancers makes both think that the other one is down.


This is why you only ever automatically fail over in one direction, and (ideally) can STONITH.


I was running a similar system. What solution would you propose?


I'm no expert, but I think the main idea is to have an odd number of nodes plus a consensus protocol like Paxos or Raft to figure out who's actually alive. If a node finds itself in a split minority, it won't become a master. This doesn't work when you have only two nodes, as there's no minority after the split, both sides are equal. Building this from scratch is extremely difficult and error-prone, so people usually use systems like ZooKeeper.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: