Dynamic HAProxy load balancer for CockroachDB clusters
A production-ready Docker image providing dynamic HAProxy load balancing for CockroachDB clusters. Automatically generates HAProxy configuration at runtime based on environment variables, eliminating manual configuration files.
Features health checks for CockroachDB nodes, round-robin load balancing across SQL and HTTP traffic, built-in statistics dashboard, and 30-minute timeouts for long-running queries.
Tech: HAProxy, Docker, Shell, CockroachDB
Features
- Dynamic configuration via environment variables
- Health checks using CockroachDB /health endpoints
- Round-robin load balancing for SQL and HTTP
- Built-in HAProxy statistics dashboard
- Security hardened with non-root Alpine base
Links: GitHub: timveil-cockroach/dynamic-haproxy
More from the portfolio
This project is part of tvsguide.io, the personal portfolio of Tim Veil — software engineer and CIO at Two Bear Capital, previously at StarTree, Cockroach Labs, and Hortonworks. The full collection covers distributed systems, data infrastructure, JDBC drivers, AI services, build pipelines, real-time analytics, and a couple of personal apps. Each project ships with source code, tech notes, and links to live deployments where applicable.
Browse the project index, read about Tim's background, follow the blog, or return to the homepage. Source code lives on GitHub; professional history is on LinkedIn.