I ended up needing to install hitch on a server recently, so the https:// traffic could be routed through Varnish (along with the existing ‘http’ stuff) for performance reasons.
The server only runs WordPress sites, so there are WordPress specific things in the Varnish configuration (vcl) file below.
Versions: Varnish 5.2, Hitch 1.4.4, Apache 2.4 and Debian Jessie.
Continue reading “Using hitch with varnish on Debian Jessie”
This might work to configure monit on Debian (Jessie) to monitor postsrsd.
check process postsrsd matching "/usr/sbin/postsrsd"
start program = "/etc/init.d/postsrsd start"
stop program = "/etc/init.d/postsrsd stop"
if failed host localhost port 10001 then restart
if failed host localhost port 10002 then restart
Control Groups aka cgroups – see the docs .
Resource control and monitoring.
Some examples follow for throttling i/o speed(s) for a process control group (cgroup).
Continue reading “adventures with cgroups for resource control”
Some alternative bash things…. ( avoiding unneecessary use of cat / awk / grep …. )
Continue reading “Avoiding unnecessary commands in bash….”