News for hackers. Stuff that matters.
Re:All 37signals Apps Were Down by banachtarski on Wednesday April 17, 2013 @12:44PM (#5565458)
All roads lead to a single URL (aka IP address) so somewhere along the way, you're going to have a single point of failure that does a one to many multiplexing, logically speaking.
Re:All 37signals Apps Were Down by sokoloff on Wednesday April 17, 2013 @12:48PM (#5565481)
Mason's question was about multiple URLs. IOW, "why does basecamp.37signals.com share a load balancer with campfire.37signals.com?"

It's usually for cost reasons. Hardware load balancers are expensive, and the job they do isn't especially computationally expensive, so it's generally accepted to host multiple VIPs on a single load balancer.

Looking at it the other way, being 100% down on one LB might be preferable to being 50% down when a single LB out of two fails. The alternative gives you twice as many chances for failure, even though each chance is half as "bad". Common-mode failure mechanisms would of course still bring you entirely down. (Bad config by a human being the most common cause.)

Re:All 37signals Apps Were Down by masonhensley on Wednesday April 17, 2013 @12:59PM (#5565550)
> "why does basecamp.37signals.com share a load balancer with campfire.37signals.com?"

That is what I was trying to understand. Thanks for the insight.

Re:All 37signals Apps Were Down by ironchef on Wednesday April 17, 2013 @12:55PM (#5565519)
Most modern hardware LBs support active-active or active-passive connections with each other (deploying two A10s, etc.). It's been this way for 15 or so years (since local director, bigip, arrowpoint, etc.). The main reasons you would suffer from this would be misconfiguration or too cheap to buy 2 LBs.
Re:All 37signals Apps Were Down by themcgruff on Wednesday April 17, 2013 @01:35PM (#5565793)
(I do ops at 37signals...) We have two top of the line ("high end") load balancers at each site. They malfunctioned. When they both malfunction at once, it doesn't matter whether it's active/active or active/passive or anything like that.
Re:All 37signals Apps Were Down by regularfry on Wednesday April 17, 2013 @12:53PM (#5565501)
That's not necessarily true. You can have more than one IP address serving the same hostname, and they'll get approximately round-robinned. The usual thing would be for these IP addresses to be on different machines. If you `dig www.google.com` you'll see an example.
Re:All 37signals Apps Were Down by dilap on Wednesday April 17, 2013 @01:18PM (#5565685)
But wouldn't you still get partial failure in that case?
Re:All 37signals Apps Were Down by clebio on Wednesday April 17, 2013 @01:39PM (#5565824)
Wouldn't that just increase latency, rather than induce failure, though?
Re:All 37signals Apps Were Down by dilap on Wednesday April 17, 2013 @10:08PM (#5568565)
I was waiting for someone who really knows the answer to jump in, but I don't think so, because a client would have to know to jump back to the DNS again after reaching the IP address failed, which I don't think they typically do. But I might be wrong.

Almost want to test it now...

Probably 80% of hackernews knows this by heart.

Re:All 37signals Apps Were Down by appplemac on Wednesday April 17, 2013 @12:55PM (#5565520)
I will always refresh the page before posting a reply

I will always refresh the page before posting a reply

I will always refresh the page before posting a reply

Re:All 37signals Apps Were Down by Macsenour on Wednesday April 17, 2013 @01:21PM (#5565704)
Thanks Bart :)
Re:All 37signals Apps Were Down by SeoxyS on Wednesday April 17, 2013 @01:24PM (#5565730)
Not true: DNS servers can be configured with multiple A records for a single hostname, and the traffic will be spread round-robin. A DNS query will resolve to a different IP for different clients.

At Chartboost, our systems are configured with every DNS query hitting one of 6 load balancers, which in turn spreads traffic to ~200 app servers.

Re:All 37signals Apps Were Down by banachtarski on Wednesday April 17, 2013 @04:35PM (#5567012)
Sure but then the DNS server is the one to many multiplexer. You can shove things around all you want, you'll still end up with either a single point of failure or weak consistency.
Re:All 37signals Apps Were Down by jewel on Wednesday April 17, 2013 @05:03PM (#5567242)
Since DNS records change rarely, it's trivial to have multiple active DNS servers for a domain. In normal deployments, DNS doesn't have a single point of failure. It does have "weak consistency", like you say, but that doesn't matter if the records rarely change.
Re:All 37signals Apps Were Down by wetherbeei on Wednesday April 17, 2013 @12:55PM (#5565524)
You can have redundant load balancer setups that listen on the same IP [1]. Combined with round-robin DNS and there isn't a single point of failure unless your DNS servers go down.

[1] http://siag.nu/pen/vrrpd-linux.shtml

Re:All 37signals Apps Were Down by appplemac on Wednesday April 17, 2013 @12:53PM (#5565508)
Well, if you have a single point of failure, even if it's a load balancer, you've done something wrong.