Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kasvith/simplelb
World's most dumbest Load Balancer
https://github.com/kasvith/simplelb
go golang load-balancer loadbalancer
Last synced: 4 days ago
JSON representation
World's most dumbest Load Balancer
- Host: GitHub
- URL: https://github.com/kasvith/simplelb
- Owner: kasvith
- Created: 2019-11-02T16:10:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-21T07:17:36.000Z (6 months ago)
- Last Synced: 2025-01-25T08:03:28.988Z (11 days ago)
- Topics: go, golang, load-balancer, loadbalancer
- Language: Go
- Homepage: https://kasvith.me/posts/lets-create-a-simple-lb-go
- Size: 22.5 KB
- Stars: 521
- Watchers: 14
- Forks: 112
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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.exe --backends=http://localhost:3031,http://localhost:3032,http://localhost:3033,http://localhost:3034
```