command
module
Version:
v0.0.0-...-82932d6
Opens a new window with list of versions in this module.
Published: Nov 17, 2023
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
load-balancer
a load balancer service written in Go
- provides load balancing across multiple backend services using
- round robin
- least connected algorithm
- configurable through a config file
usage
configuration
The load balancer is configured via a config.yaml file:
lb_port: 8005
strategy: round-robin
backends:
- "http://localhost:8001"
- "http://localhost:8002"
- "http://localhost:8003"
- "http://localhost:8004"
health_check_interval_in_sec: 30
max_retries: 5
running
go run main.go
sample backend service
a sample backend service has been provided in be-service with its own docker-compose to bring up multiple servies
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.