Tagged With: linux
Checking varnish configuration syntax
If you’ve updated your varnish server’s configuration, there doesn’t seem to be an equivalent of ‘apachectl configtest’ for it, but you can do : varnishd -C -f /etc/varnish/default.vcl If everything is correct, varnish will then dump out the generated configuration. Otherwise you’ll get an error message pointing you to a specific line number.
yum changelog (Want to know what you’re about to upgrade on CentOS/RHEL?)
Want to see what changes you’re about to apply when doing a ‘yum update’ ? Similar-ish to how ‘apt-listchanges’ works… On CentOS 5.6, try : yum install yum-changelog python-dateutil Note, python-dateutil seems to be an unmarked dependency – i.e. you get an error message like : “Dateutil module not available, so can’t parse dates” when … Continue reading
Getting a kvm serial console with grub2
I’ve a few kvm guest servers, which I’ve been accessing using vnc – but this is a bit of a pain (getting port forwarding setup etc). Host and guests run Debian Squeeze with Grub2 installed/in use. So, here’s how to do the ‘virsh console ‘ thing … Edit /etc/default/grub, specify GRUB_TERMINAL=serial GRUB_SERIAL_COMMAND=”serial –unit=0 –speed=115200 –word=8 … Continue reading
Varnish + Zope – Multiple zope instances behind a single varnish cache
I run multiple Zope instances on one server. Each Zope instance listens on a different port (localhost:100xx). Historically I’ve just used Apache as a front end which forwards requests to the Zope instance. Unfortunately there are periods of the year when one site gets a deluge of requests (for example; when hosting a school site, … Continue reading