Hacker News new | ask | show | jobs
by mrb 3630 days ago
I don't have to do anything to take a server out of rotation. Browsers automatically try all IPs, and then stick with the first IP they find that works. Even if some servers are down, your HTTP requests continue to all work. This is a standard browser behavior. For a really extensive outage (2+ days), I would probably bother to manually update the DNS records.

Thanks for the feeback about making the code browsable. Will consider.

1 comments

That's only true if origin doesn't respond at all. If one of your IPs accepts connections and hangs, then the browser will display an error.
The browser would time out after a few minutes. However if the user stops loading the page and hits Reload, the browser will try another IP and the page will load successfully. I verified this behavior with Chrome. For a personal blog, that's definitely "good enough" HA.
If a webpage I view hangs on loading, I'm going to bounce and not come back. Because it's just a blog makes me less inclined to wait it out.
When you think back on it, this was the true genius behind RSS aggregators. I could still read your blog when your blog was not working, because Google Reader (or your favorite aggregator) had already downloaded it once. It's too bad that RSS died.
Yes! Absolutely.
True. However this specific type of failure should be relatively rare. I expect most of my outages to be either network issues or a powered off machine (TCP timeout) or the web service is not running (TCP RST). Accepting a connection and not replying is just rare for something as dumb as an HTTP request for a static file.