Haproxy Early Hints

One of the new features added to HAProxy 1.9 is Early Hints. Sent as an early HTTP-103 header, Early Hints (rfc8297), might be a replacement for HTTP/2's Server Push. The main difference between Early Hints and Server Push, is that Server Push actually sends data you…

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…