logoalt Hacker News

aitchnyulast Thursday at 12:25 PM3 repliesview on HN

How many servers are needed to bounce back from a server failure in a few minutes? Should we consider 3 VMs instead of 1 physical?


Replies

sgarlandlast Thursday at 1:16 PM

Two. Run one in warm/hot standby, optionally with synchronous commits if you want (nearly) guaranteed zero data loss, and can tolerate the increased write latency.

Technically you’ll need a third server to perform the failover, but it doesn’t need to be nearly as big, as it’s just watching heartbeats and issuing commands.

graemeplast Thursday at 12:58 PM

Server failures are rare. Its still usually going to be cheaper to have physical servers even with spare capacity for failures.

cieslast Thursday at 1:17 PM

I think these days it's more: were do we find the grey old unix guy who confidently will host your db for you on bare metal.

show 1 reply