The backend for our recent mirroringMarch 21, 2006
Since I alluded to it in passing in an earlier entry, I might as well describe what I know about how THEMIS set up their systems to handle the load. (Disclaimer: this is second and third hand.) To cope with the visitors to their regular web site, THEMIS
put their ordinary web servers behind eight Squid proxies, which were in turn behind a load balancer
box. This apparently held up very well to the quite a few millions of
extra visitors from Google Mars.
The main movie page was on their
regular site (and thus behind the Squid proxies), but the links to
the movies pointed to All THEMIS ran an automated monitoring system to detect overloaded or dead
mirrors. It worked by running through the list of mirror URLs every so
often, making Using HTTP redirects meant that the mirroring could be very simple. It didn't need to worry about DNS round robin or having people set up virtual hosts or anything; all it needed was a list of current mirror URLs. (The disadvantage of HTTP redirects is that the mirroring is semi-exposed to your visitors. I don't think THEMIS cared under the circumstances; they were more concerned that demand for the movies would overwhelm ASU's Internet connection.) Sidebar: why such a primitive HTTP redirector?Why not parse the HTTP requests on video.mars, instead of having to run two servers and so on? The THEMIS people were concerned that video.mars would see a huge connection rate and wanted it to be as light-weight and reliable as possible. You could build a pretty lightweight solution with something like lighttpd's built in FastCGI gateway going to a local FastCGI server, but it would have had more moving parts and thus been more risky to build on the spot. |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |