Haproxy Cloud Native Logging

Recently, HAProxy 1.9 was released to the public. One of the enhancements this release has had, is to the way it logs: HAProxy is now able to log to stdout and stderr. Logging to stdout or stderr is important for container environments, like Docker. To enable logging to stdout,…

HAProxy: routing HTTP requests by domain name

Recently, I have been looking into HAProxy as an alternative load balancer to NGINX. NGINX' free version lacks features vital to a multi-container environment. The most important features we need are upstream health checks and sticky sessions. So far, least_conn or ip_hash have worked well enough, but…

HAProxy inside Docker: getting the logs

The official HAProxy docker image does not really offer an out-of-the-box way to get to HAProxy's logs other than sending it to a remote log server. Sending log messages to stdout/stderr so you can view the logs with docker logs does not appear to be possible with…

XenServer: Unable to find partition containing kernel

One of our users at Loeniks managed to break his Debian VM. After upgrading to Debian 6, he tried upgrading his bootloader to Grub 2. XenServer’s paravirtualized bootloader (pygrub) is unable to handle the newest version of the Grub bootloader in virtual machines, this results in a nice and…

Enabling jumbo frames

Jumbo frames are what you need on a dedicated storage (NFS, iSCSI, DRBD) network. Since the packets are bigger, fewer packets are needed to send the same data. This results in faster transfers and less CPU overhead on both the transmitting and receiving ends. All in all, a good recipe…

Auto-logout idle users

Users not properly logging out of systems can result in sessions that will never be terminated. To make sure the sessions will at some point be terminated, a TMOUT variable can be set in /etc/profile case "$0" in -sh | -ksh | -bash) TMOUT=32400 export TMOUT esac In…