Here’s where I explain my current setup, and ask for feedback. I’m
looking for a solution that’s easy to set up and Just Works. This is
for http://www.tanga.com. Due to the nature of the site, traffic is
awfully spikey, meaning that we can get 100x normal traffic in a matter
of seconds. I’m being hosted at Textdrive.
An accelerator is sort of like a VPS, I suppose. Running on
OpenSolaris.
In a few days, I should have:
* Four 1/16 accelerators. Each of these will be running 10
Mongrels. A Big IP will be doing load balancing feeding the requests
directly to the Mongrels. SSL processing is done by the Big IP (I
hope).
* One 1/8 accelerator doing database (postgresql). It also sends
out a ton of email and sms notifications.
* All the accelerators share the same /home mount point that's on a
x4500. All the Mongrels on the different Accelerators run off the same
Rails code (i.e. the code is in /home/deploy/apps/tanga). Each Mongrel
writes to the same production.log file that’s in /home.
QUESTION: How should page/fragment caching work? I guess we need a
webserver in there somewhere that determines whether the static cache
file should be sent or if the request needs to be sent to the Mongrels.
I’m not opposed to using something like BingoDisk, but that doesn’t
solve the issue of how the cache issue should work. Right now, Apache
first checks for the existence of the requested file, and if it doesn’t
find it, it sends the request to Mongrel.