>>>>> "Perrin" == Perrin Harkins <[EMAIL PROTECTED]> writes:

Perrin> Static content is easy; just don't serve it from mod_perl.  The proxy
Perrin> approach is good, and so is a separate image server (which you can
Perrin> host on the same machine).  I've found thttpd to be an amazingly
Perrin> efficient server for images, but a slimmed-down apache does very well
Perrin> too.

On the new www.stonehenge.com, I'm using a stripped down Apache (just
mod_proxy and mod_rewrite) for a reverse caching proxy, and it's about
1.5M RSS per process.  I divert requests for TT's /splash/images and
Apache's /icons, but otherwise, all content requests (including for
/merlyn/Pictures/ images) go to my heavyweight mod_perl backends,
which are running about 10M RSS.

Thanks to the caching, any of my images or other static content gets
pushed once a day to the front, and then doesn't tie up the back ever
again.  On a 500Mhz 256M box, I'm easily serving 50K requests a day
(about 10K of those are fully uncached dynamic pages touching about 20
to 50 TT includes), with loadaverages staying below 0.5.  If it ever
starts getting higher, I can cache the expensive menubar creation
(which is nearly completely static) using Perrin's device, but I've
not bothered yet.

It's been amazingly carefree.  I'm planning to move
www.geekcruises.com to be served on the same box, although they get
only about 1/10th the traffic.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to