Skip to content
/ golb Public

The Lightweight, User-Friendly Load Balancer in Go

License

Notifications You must be signed in to change notification settings

dhyanio/golb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoLB: The Lightweight, User-Friendly Load Balancer for Testing in Go

Discache

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.
package main

import (
    "github.com/dhyanio/golb"
)

func main() {
    // Slice of servers
	servers := []string{"http://localhost:8081", "http://localhost:8082"}

    // Start Loadbalancer
	golb.Start(serverList, "3000")
}

About

The Lightweight, User-Friendly Load Balancer in Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages