My website has been offline for a couple of days because I've moved it to a new machine (my old laptop with Debain on it) and have it running behind a Squid server instead.

A Squid server is a superfast cache server that makes a temporary copy of the dynamic site requested and serves that instead. The disadvantage with this is that at least one request will spawn the cache to make a copy; then all consecutive requests will be run from Squid instead of Zope.

So if my site is ever slashdotted it should be able to handle the load (...better).

There are still some settings I need to tweak about with to get exactly the kind of caching I need and want. One problem is the laptop that is now my webserver. It is a weak Celeron 500 with 192Mb of RAM, so the performance will still be pretty poor no matter what I do.

Another advantage with having Squid set up like this is that I can easily define all the virtual hosts for my sites (I use pyredir) but also for stuff like images. One hope is to be able to have all photos run off the filesystem and by doing that I'll be able to serve the raw images from a different web server (something really fast like thttpd)

Comments

Your email will never ever be published.

Previous:
Back from my holidays July 21, 2003 Sweden
Next:
How to not get any spam July 31, 2003
Related by category:
'Cache-Control' or Expires September 16, 2005 Zope
IssueTrackerProduct now officially abandoned March 30, 2012 Zope
To all Zope developers: Does this sound familiar? March 8, 2011 Zope
Sending HTML emails in Zope October 26, 2006 Zope
Related by keyword:
How to use django-cache-memoize November 3, 2017 Python, Django
Fastest Redis configuration for Django May 11, 2017 Python, Linux, Web development, Django
cache_memoize - a pretty decent cache decorator for Django September 11, 2017 Python, Web development, Django
Is Nginx obsolete now that we have Amazon CloudFront? July 28, 2012 Web development