Preparing a high load web mirror setupI spent a chunk of this weekend preparing a mirror for a high load
environment. The mirror only needs to serve a couple of large
video clips, but they're
I made a generic mirror url, using a new hostname that I had to put into
a new sub-zone in our DNS. Right now it has two The machines run lighttpd, serving just the mirrored files, with enough memory to keep the files in cache. Lighttpd is small and easy to install (nice when you're in a rush), plus as a single process server without threads or forking it can't really kill a machine no matter how many simultaneous connections it gets. (I chose lighttpd over thttpd for reasons I may go into later.) Looking at this after writing it up, it's surprising to me how little stuff is actually involved. Hopefully this setup will work fine in practice; I'll likely find out soon. (The setup passed stress tests, but that's not the same as having real load show up.) Sidebar: lighttpd configurationLighttpd has a helpful web page on performance improvements. I turned keep-alives off; as far as I can see, keep-alives are useless for serving unrelated static files and I wanted to maximize how many simultaneous connections I could handle. In testing, I discovered I had to increase lighttpd's
|
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 |