Garbage Load Balancer
cd ui_src
yarn build
cd cmd/garbagelb
go build main.go
or
go install ./cmd/garbagelb
rice append -i garbagelb/adminServer --exec main.exe
Sample config.yaml file is available in the repo.
Edit it to your values and start the load balancer.
Use flag --config to specify the directory where the config.yaml file is located.
- http
- tcp
-
http
- path
- header
- cookie
- source_ip
- source_port
- referrer/referer
- method
- host
-
tcp
- tcp_check
- source_ip
- source_port
- equals
- not_equals
- contains
- not_contains
- starts_with
- ends_with
- matches
- not_matches
- greater_than
- less_than
- greater_than_or_equal
- less_than_or_equal
- not_required
- http / https
- tcp (tcp, tcp4, tcp6)
- round_robin
- random
- least_connections