load-balancer

command module
v0.0.0-...-82932d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 14 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL