Monthly Archives: September 2009

PEAR Cache_Lite – efficient group cleaning

After using PEAR Cache_Lite for a while, we began to notice that as traffic increased the web servers spent more and more time thrashing their discs. On closer inspection we noticed that the servers were pretty much constantly parsing the … Continue reading

Posted in PHP | Tagged , , , , , , , , , | Leave a comment

PEAR Cache_Lite – preventing stampeding

The PEAR Cache_Lite package is an excellent caching system; lightweight and fast, however when put into use on a high-traffic website a few issues came to light. The first problem we hit was stampeding. What’s stampeding? Stampeding is the situation … Continue reading

Posted in PHP | Tagged , , , , , , , | 3 Comments

Logging and monitoring server load

We decided it would be a good idea to be able to periodically log server load so we can identify potential problems So I wrote a little script that outputs the current server load along with a timestamp in CSV … Continue reading

Posted in Linux | Tagged , , , , , , , | Leave a comment