https://github.com/martishin/load-balancer
Simple round-robin load balancer with health checks
https://github.com/martishin/load-balancer
docker-compose go golang load-balancer makefile
Last synced: about 2 months ago
JSON representation
Simple round-robin load balancer with health checks
- Host: GitHub
- URL: https://github.com/martishin/load-balancer
- Owner: martishin
- Created: 2024-01-15T17:58:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-10T23:42:24.000Z (almost 2 years ago)
- Last Synced: 2025-01-01T21:28:08.416Z (over 1 year ago)
- Topics: docker-compose, go, golang, load-balancer, makefile
- Language: Go
- Homepage: https://load-balancer.martishin.com
- Size: 3.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Load Balancer
Simple round-robin load balancer with health checks implemented using Go, [demo](https://load-balancer.martishin.com/)

## 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`