Skip to content

swagftw/lb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple yet high performance load balancer

Provide config

  • Supports hot reload on config change
  • Default config can be found at ./pkg/config/config.yaml
# load balancer health
health:
  interval: 2
  timeout: 5

## backends
backends:
  - name: backend1
    addr: localhost:8080
  - name: backend2
    addr: localhost:8081
  - name: backend3
    addr: localhost:8082
  - name: backend4
    addr: localhost:8083

# load balancer port
server:
  port: 8888

ENV

  • CONFIG_PATH = path to config file (optional)

Running

go run main.go

About

simple load balancer in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages