ray-haproxy
HAProxy binary distribution for Ray Serve
What it is and what it does
ray-haproxy packages a pre-compiled HAProxy binary with all its non-standard shared library dependencies (OpenSSL 3.0.x, Lua 5.4.x, PCRE, libxcrypt) vendored inside the wheel. This eliminates the need to install HAProxy at the system level before using Ray Serve. The package resolves the HAProxy binary in order: first checking the RAY_SERVE_HAPROXY_BINARY environment variable for an explicit override, then falling back to the bundled binary, and finally to any haproxy on the system PATH.
The bundled libraries are built from source or extracted from manylinux2014 containers to ensure compatibility across Linux distributions. Standard system libraries (libc, libz, libpthread, etc.) listed in PEP 599 are not vendored, as they are guaranteed to exist on compatible systems. This approach allows Ray Serve deployments to run HAProxy without requiring administrators to manage system package dependencies.
Use it for:
- Deploy Ray Serve on Linux systems where HAProxy is not pre-installed or where system package management is restricted.
- Containerize Ray Serve applications with a self-contained HAProxy binary, avoiding base image bloat from system package managers.
- Use Ray Serve's load balancing in CI/CD pipelines or ephemeral compute environments where system-level HAProxy installation is impractical.
- Override the default HAProxy binary via RAY_SERVE_HAPROXY_BINARY for testing or custom HAProxy builds.
- Ensure consistent HAProxy versions across heterogeneous Linux deployments (x86_64 and aarch64).
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a pre-built HAProxy binary bundled with its required shared libraries for use with Ray Serve, eliminating the need for system-level HAProxy installation.
Yes, if you are using Ray Serve on Linux (x86_64 or aarch64) and want to avoid system-level HAProxy installation. The package is actively maintained, has no known vulnerabilities, and solves a real dependency management problem. Be aware of the GPLv2 copyleft license if you are distributing derived works, and note that it is Linux-only with a Python >=3.9 requirement.
Install
ray-haproxy on PyPI
pip
pip install ray-haproxyuv
uv add ray-haproxypoetry
poetry add ray-haproxyInstalling ray-haproxy
Before you install
Medium install friction due to platform-specific wheels (x86_64 and aarch64 Linux only). Package is actively maintained with a recent release cycle.
License in practice
Distributed under GPLv2 (copyleft). Any derivative work or distribution of this package must comply with GPLv2 terms, including source code disclosure obligations.
Quickstart
pip install ray-haproxy
from ray_haproxy import get_haproxy_binary
print(get_haproxy_binary()) # /path/to/ray_haproxy/bin/haproxy
Linux x86_64 or aarch64 only; requires Python >=3.9; no Windows or macOS support.
Verify before relying
- Whether Ray Serve automatically uses this package when installed, or if explicit configuration is required.
- Performance characteristics or overhead compared to system-level HAProxy installation.
Package facts
| License | GPLv2 (copyleft) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 46 days since the last release |
| First released | |
| Downloads | 117,781/month — #12,149 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ray_haproxy-2.8.25-py3-none-manylinux_2_17_aarch64.whl; ray_haproxy-2.8.25-py3-none-manylinux_2_17_x86_64.whl
Tags
More Proxy Servers packages
Socksio is a sans-I/O SOCKS protocol…
permissive · top 1,000 on PyPI
maxminddbReads MaxMind DB files to look up geolocation…
permissive · top 5,000 on PyPI
geoip2Queries MaxMind's GeoIP web services and…
permissive · top 5,000 on PyPI
netaddrRepresents and manipulates IPv4, IPv6, MAC…
permissive · top 5,000 on PyPI
mitmproxymitmproxy is an interactive, SSL/TLS-capable…
permissive · top 5,000 on PyPI
pyngrokpyngrok wraps the ngrok reverse-proxy binary…
permissive · top 5,000 on PyPI
cmeel-zlibProvides zlib 1.3.2 as a pre-built wheel for…
permissive · top 15,000 on PyPI
dlib-bindlib-bin provides pre-compiled binary wheels of…
unclear · top 5,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
protoc-wheel-0Provides pre-built wheels of the Google…
permissive · top 15,000 on PyPI
delvewheelBundles DLL dependencies into Windows Python…
permissive · top 15,000 on PyPI
pyinstallerPyInstaller bundles a Python application and…
copyleft · top 5,000 on PyPI
PyQt6-WebEngine-Qt6Provides the Qt6 runtime libraries required by…
copyleft · top 15,000 on PyPI
PyQt6-Qt6Provides the Qt6 runtime libraries required by…
copyleft · top 5,000 on PyPI
prefect-rayIntegrates Ray distributed computing with…
permissive · top 15,000 on PyPI
embreexembreex provides Python bindings to Intel's…
unclear · top 5,000 on PyPI