Table of contents
Open Table of contents
Intro
Simple round-robin load balancer with health checks implemented with Go, demo.
Source code is available on GitHub.
How to Use
Usage of ./load-balancer:
-backends string
Load balanced backends, use commas to separate
-port int
Port to serve (default 80)
Running Locally
- Build the load balancer:
make build
- Run the balancer and 3 example web-servers:
make run
- The balancer will be listening on port
8080
Testing
- Run tests:
make test