https://github.com/jonaylor89/loadbalancer
Simple Load Balancer
https://github.com/jonaylor89/loadbalancer
Last synced: over 1 year ago
JSON representation
Simple Load Balancer
- Host: GitHub
- URL: https://github.com/jonaylor89/loadbalancer
- Owner: jonaylor89
- Created: 2019-11-13T04:59:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T16:04:48.000Z (over 6 years ago)
- Last Synced: 2025-01-11T21:41:27.167Z (over 1 year ago)
- Language: Go
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleLB
Simple LB is the simplest Load Balancer ever created.
It uses RoundRobin algorithm to send requests into set of backends and support
retries too.
It also performs active cleaning and passive recovery for unhealthy backends.
Since its simple it assume if / is reachable for any host its available
# How to use
```bash
Usage:
-backends string
Load balanced backends, use commas to separate
-port int
Port to serve (default 3030)
```
Example:
To add followings as load balanced backends
- http://localhost:3031
- http://localhost:3032
- http://localhost:3033
- http://localhost:3034
```bash
~$ simple-lb --backends=http://localhost:3031,http://localhost:3032,http://localhost:3033,http://localhost:3034
```