Skip to content

fahmifan/rebalance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rebalance goreport

Experimentation on server load balancing using Round Robin algorithm with self join.

TODO

  • proxy request to several ip
    • proxy request to an ip
  • add self join & discovery
    • can join from proxied services
  • handle concurrent proxy requests

Usages

Usage:
   [command]

Available Commands:
  help        Help about any command
  proxy       a reverse proxy
  sidecar     a sidecar proxy

Flags:
  -h, --help   help for this command

Use " [command] --help" for more information about a command.

Build

make build

Benchmarks

$ make bench package=proxy

goos: linux
goarch: amd64
pkg: github.com/miun173/rebalance/proxy
Benchmark4Upstream/200_microsecond/response/1000_req-4              1000000000          0.87 ns/op
Benchmark4Upstream/200_microsecond/response/10000_req-4             1                   8659798397 ns/op
Benchmark4Upstream/20_microsecond/response/1000_req-4               1000000000          0.87 ns/op
Benchmark4Upstream/20_microsecond/response/10000_req-4              1                   8673090255 ns/op
PASS
ok      github.com/miun173/rebalance/proxy      79.571s