Skip to content
ADHDecode
  1. Home
  2. Articles
  3. Haproxy

Haproxy Articles

47 articles

Expose HAProxy Metrics to Prometheus via Exporter

HAProxy itself can expose metrics, but Prometheus needs an exporter to scrape them. Let's get HAProxy metrics into Prometheus

2 min read

Manage HAProxy Connection Queues to Prevent Request Loss

HAProxy doesn't just drop requests when its backend is overloaded; it actively manages them in queues, and understanding how it queues is the key to pre.

3 min read

Rate-Limit Abusive Traffic in HAProxy with Stick Tables

HAProxy doesn't just count requests; it can dynamically punish clients that go too far, and it does it by silently tracking them in memory.

3 min read

Redirect HTTP to HTTPS and URLs with HAProxy Rules

HAProxy can enforce HTTPS by redirecting all HTTP traffic to HTTPS, and it can also handle specific URL rewrites and redirects.

3 min read

Reload HAProxy Configuration Without Dropping Connections

Reloading HAProxy configuration without dropping connections is surprisingly easy, but most people overcomplicate it by thinking they need to restart th.

3 min read

Control HAProxy at Runtime with the Admin Socket API

Control HAProxy at Runtime with the Admin Socket API — practical guide covering haproxy setup, configuration, and troubleshooting with real-world examples.

2 min read

Adjust Server Weights and Drain Connections in HAProxy

HAProxy's server weights aren't just about directing more traffic to faster servers; they're a dynamic, real-time dial that can prevent outages and opti.

2 min read

Protect HAProxy Against Slowloris and Slow HTTP Attacks

HAProxy can actually benefit from being a bit "slow" itself to gracefully handle slow HTTP attacks. Let's watch HAProxy in action, serving up a simulate.

3 min read

Delegate Request Filtering to External Agents with HAProxy SPOE

HAProxy can offload request filtering to external agents, allowing for complex and dynamic filtering logic without bogging down the HAProxy process itse.

3 min read

Pass TLS Traffic Directly to Backends with HAProxy SSL Passthrough

HAProxy can terminate TLS and then re-encrypt traffic to your backends, or it can just pass the encrypted TLS traffic straight through to the backends w.

2 min read

Terminate TLS Connections at HAProxy and Forward HTTP

Terminate TLS Connections at HAProxy and Forward HTTP — practical guide covering haproxy setup, configuration, and troubleshooting with real-world examp...

3 min read

Enable the HAProxy Statistics Page for Live Monitoring

HAProxy's statistics page is a powerful tool for live monitoring, but it's not enabled by default and requires a specific configuration block.

2 min read

Implement Sticky Sessions and Rate Limiting with HAProxy Stick Tables

Implement Sticky Sessions and Rate Limiting with HAProxy Stick Tables — practical guide covering haproxy setup, configuration, and troubleshooting with ...

6 min read

Proxy Raw TCP Connections with HAProxy TCP Mode

HAProxy in TCP mode doesn't actually proxy the TCP connection; it terminates the client's connection and establishes a new one to the backend.

2 min read

Manage HAProxy Configuration with the Terraform Provider

Terraform can manage HAProxy configurations, but it doesn't actually run HAProxy for you; it generates HAProxy configuration files and can then tell an .

2 min read

Tune Linux Kernel Parameters for Maximum HAProxy Performance

Tuning Linux kernel parameters for HAProxy performance is less about tweaking random knobs and more about understanding how the kernel manages network s.

5 min read

Upgrade HAProxy to a New Version with Zero Downtime

HAProxy's hot-reloading feature is the magic trick that lets you upgrade without anyone noticing. Let's see it in action

2 min read

Route Traffic to Backends with HAProxy ACLs

HAProxy ACLs let you route traffic to different backend servers based on incredibly granular criteria, but the most surprising thing is how often they'r.

2 min read

Set Up HAProxy Active-Passive Failover with Keepalived

HAProxy active-passive failover with Keepalived isn't about having two HAProxy instances ready to take over; it's about one instance being the sole acti.

3 min read

Configure HAProxy Agent Checks for Custom Health Signals

HAProxy agent checks let you feed custom health signals into the load balancer, enabling it to make smarter routing decisions than just basic TCP or HTT.

5 min read

Automate HAProxy Configuration Management with Ansible

Automating HAProxy configuration management with Ansible is less about writing playbooks and more about understanding how HAProxy's dynamic nature clash.

3 min read

Configure HAProxy Caching to Reduce Backend Load

HAProxy doesn't just serve requests; it can actively prevent them from ever reaching your backend servers, making your application feel faster and your .

2 min read

Enable gzip Compression in HAProxy for HTTP Responses

HAProxy doesn't compress responses by default, which means you're sending uncompressed data to clients, burning bandwidth and slowing down page loads.

3 min read

HAProxy Configuration Guide: Frontend, Backend, and Listen

HAProxy can make your application unreachable if you configure it to listen on an IP address that doesn't exist on any of your network interfaces.

3 min read

Add CORS Headers to Responses with HAProxy

HAProxy doesn't actually add CORS headers; it rewrites existing headers to include CORS information, and it does this by inspecting the response before .

3 min read

Configure HAProxy Dynamically via the Data Plane API

HAProxy can update its configuration on the fly without dropping a single connection. Let's say you've got a running HAProxy instance serving traffic, a.

2 min read

Detect Device Types in HAProxy with Device Atlas Plugin

The most surprising truth about device detection is that it's fundamentally a probabilistic game, not a deterministic one.

3 min read

Run HAProxy in Docker with Dynamic Configuration

HAProxy running in Docker with dynamic configuration is a game-changer, and the most surprising thing is how little state it actually needs to maintain .

3 min read

Add and Remove Backend Servers at Runtime in HAProxy

HAProxy's configuration can be dynamically updated without restarting the service, a feat often achieved by targeting specific backend server entries.

2 min read

Configure HAProxy Frontends, Backends, and Listen Sections

HAProxy doesn't actually have "listen sections"; it uses a combined frontend and backend structure to define how it accepts connections and where it sen.

2 min read

Load Balance gRPC Traffic with HAProxy

Load Balance gRPC Traffic with HAProxy — practical guide covering haproxy setup, configuration, and troubleshooting with real-world examples.

2 min read

Configure Active and Passive Health Checks in HAProxy

HAProxy health checks aren't just about checking if a server is "up" or "down"; they're a sophisticated negotiation between HAProxy and your backend ser.

3 min read

Set Up HAProxy High Availability with Pacemaker and Corosync

Pacemaker and Corosync don't actually manage HAProxy itself; they manage the virtual IP address that HAProxy listens on, ensuring it's always active on .

3 min read

Enable HTTP/2 Protocol Support in HAProxy

Enable HTTP/2 Protocol Support in HAProxy — HAProxy doesn't just enable HTTP/2; it rewrites your HTTP/1.1 requests into HTTP/2 for the backend, .

2 min read

Allow and Block IP Addresses in HAProxy

HAProxy doesn't actually "allow" or "block" IP addresses; it selectively forwards or drops traffic based on rules you define, acting as a gatekeeper rat.

3 min read

Configure HTTP Keep-Alive in HAProxy for Persistent Connections

HAProxy's HTTP Keep-Alive doesn't actually make connections persistent for the client; it makes them persistent for the server.

4 min read

Configure a Virtual IP with Keepalived for HAProxy HA

A Virtual IP VIP address, managed by keepalived, can seem like magic for achieving high availability HA for your haproxy load balancer.

3 min read

Use HAProxy as a Kubernetes Ingress Controller

HAProxy can act as a Kubernetes Ingress controller, but it's not a built-in solution and requires a bit of manual setup.

3 min read

Renew Let's Encrypt Certificates Automatically with HAProxy

Let's Encrypt certificates are designed to be short-lived, making manual renewal a constant chore. HAProxy, a widely used TCP/HTTP load balancer, can be.

5 min read

HAProxy Load Balancing Algorithms: Round-Robin, Least-Conn, Source

The most surprising thing about HAProxy load balancing is that "least connections" doesn't actually mean the server with the fewest active connections.

2 min read

Write Custom HAProxy Log Formats for Structured Logging

HAProxy's default log format is a relic from a time when logs were primarily for human eyes, meaning you're probably wrestling with unstructured text wh.

3 min read

Send HAProxy Access Logs to rsyslog

Send HAProxy Access Logs to rsyslog — HAProxy access logs don't just appear in /var/log/haproxy.log by default; you have to actively tell .

3 min read

Extend HAProxy with Lua Scripts for Custom Logic

HAProxy's Lua scripting allows you to inject arbitrary logic into request and response processing, effectively extending its capabilities beyond its cor.

2 min read

Tune HAProxy maxconn to Prevent Connection Overload

HAProxy's maxconn setting, often perceived as a simple connection limit, fundamentally dictates how many concurrent connections a specific frontend or b.

3 min read

Configure Mutual TLS in HAProxy for Client Authentication

Mutual TLS is surprisingly less about security and more about identity management for your services. Let's see HAProxy handle client authentication usin.

2 min read

Tune HAProxy nbproc and nbthread for Multi-Core Performance

HAProxy's nbproc and nbthread settings don't just distribute work; they fundamentally change how HAProxy handles network connections, often leading to p.

3 min read

HAProxy Production Hardening: Security and Performance Checklist

HAProxy's true power lies not in its speed, but in its ability to abstract complexity, making your entire application stack appear faster and more resil.

3 min read
ADHDecode

Complex topics, finally made simple

Courses

  • Networking
  • Databases
  • Linux
  • Distributed Systems
  • Containers & Kubernetes
  • System Design
  • All Courses →

Resources

  • Cheatsheets
  • Debugging
  • Articles
  • About
  • Privacy
  • Sitemap

Connect

  • Twitter (opens in new tab)
  • GitHub (opens in new tab)

Built for curious minds. Free forever.

© 2026 ADHDecode. All content is free.

  • Home
  • Learn
  • Courses
Esc
Start typing to search all courses...
See all results →
↑↓ navigate Enter open Esc close