lb

command module
v0.0.0-...-d452bfe Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 12 Imported by: 0

README

lb

application loadbalancer written in go

Starting Application Servers

Go to backendserver\config and edit config.json to configure app servers. A sample configuration would look like: { "Servers" : [ {"Host" : "localhost", "Port" : "8080", "Weight" : 80}, {"Host" : "localhost", "Port" : "8088", "Weight" : 80}, {"Host" : "localhost", "Port" : "8082", "Weight" : 80}, {"Host" : "localhost", "Port" : "8083", "Weight" : 80}, {"Host" : "localhost", "Port" : "8084", "Weight" : 80}, {"Host" : "localhost", "Port" : "8085", "Weight" : 80}, {"Host" : "localhost", "Port" : "8086", "Weight" : 80}, {"Host" : "localhost", "Port" : "8087", "Weight" : 80} ] }

cd backendserver
go run server.go

Starting Loadbalancer

In the root of the directory run the below commad

go run main.go

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