Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dhyanio/golb
The Lightweight, User-Friendly Load Balancer in Go
https://github.com/dhyanio/golb
Last synced: 20 days ago
JSON representation
The Lightweight, User-Friendly Load Balancer in Go
- Host: GitHub
- URL: https://github.com/dhyanio/golb
- Owner: dhyanio
- License: mit
- Created: 2024-10-20T07:14:08.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-02T07:47:01.000Z (about 2 months ago)
- Last Synced: 2024-11-24T05:09:31.799Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 622 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoLB: The Lightweight, User-Friendly Load Balancer for Testing in Go
GoLB is a simple RoundRobin golang loadbalancer. It performs active cleaning and passive recovery for unhealthy backends.
### Features:
- `Cleans`: Excludes servers marked as unhealthy from the round-robin rotation.
- `Recovers`: Periodically tries to recheck and reintegrate previously unhealthy servers back into service.```go
package mainimport (
"github.com/dhyanio/golb"
)func main() {
// Slice of servers
servers := []string{"http://localhost:8081", "http://localhost:8082"}// Start Loadbalancer
golb.Start(serverList, "3000")
}
```