A simple and straight-forward load balancer for TCP connections, written in Rust. A sample configuration file shows off the current features:
- Any number of backends that will perform round-robin load balancing over a number of target addresses.
- Any number of frontends listening on a port and forwarding all requests to a single backend.
The load balancer is built on top of the mio library, which provides a fast and memory-efficient event driven architecture.
Run it from a cloned copy of this repository. To run the included sample configuration, simply type:
cargo run -- -c sample_config.toml