Validate the complete HAProxy configuration before reload
Haproxy -c parses the supplied configuration and referenced files using the installed binary without starting listeners.
Verify an HAProxy graceful reload across old and new workers
A graceful reload starts a validated new process and asks the old process to stop accepting new connections while it finishes existing work.
Build an HAProxy health check around a meaningful dependency contract
HTTP health checks send a configured request and compare protocol, status, and optional content before changing backend health state.
Read HAProxy timers and termination state before blaming a backend
HAProxy HTTP logs can expose queue, connect, response, total timers, status, retries, and termination state for each request.
Enable HAProxy PROXY protocol only when both peers agree
The PROXY protocol prepends connection metadata before application bytes; the sender and receiver must agree on version and trust boundary.
Drain one HAProxy backend server through the runtime API
The runtime API can change live server administrative state and weight without editing the static configuration, so persistence across reload must be planned separately.
Build an HAProxy stick-table rate limit with bounded memory
Stick tables retain keyed counters for a configured size and expiry; ACLs compare those counters to policy before allowing a request.
Set HAProxy timeouts from protocol phases instead of one large number
Connect, client, server, queue, tunnel, and HTTP request timeouts cover different phases and produce different termination evidence.
Install an HAProxy TLS certificate bundle with chain and key checks
HAProxy loads a certificate, matching private key, and intermediates for a bind; SNI selects among configured certificates during the handshake.
Proxy WebSockets through HAProxy with tunnel-aware timeouts
An HTTP Upgrade handshake switches a connection to bidirectional tunnel behavior, after which tunnel timeout and backend liveness govern the session.