Whenever you care about the availability of your service, you need a monitoring tool. I've not a long past as a system administrator and I'd to learn how to do it the hard way. Doing my regular web shopping tour, looking for the tools that most fit my ...
PostgreSQL WAL archiving on Rackspace
Viralize is now hosted on Rackspace. During the change I had to setup PostgreSQL master-slave replication and I had to write a simple script for WAL archiving.
I've put the code on Github, hopefully it will help other people:
https://github.com/duilio/pg_raxarchive/
How does it work?
pg_raxarchive ...
Django: serving hashed static files with Nginx
If you are using Django, you certainly know about a nice feature that was added to since 1.4 for better caching static files. I'm talking about the CachedStaticFilesStorage (doc), a new storage which saves static files with also their hashed content values appended to the name.
Why is ...
Backup and Restore
31st March is apparently World Backup Day.
Curiously a few days ago we faced a disaster in a server we are using for some of our services. (Some static websites and some internal services like source code repositories, wiki, etc...) Both of our drives failed (we are using Raid 1 ...