Simple HTTP load balancer
Simproxy
- checks healthy of backends by HTTP requests
- balances HTTP requests to multiple backends (currently least request balancing is only supported)
- supports server-starter
Pre-built binaries are available at https://github.com/ryotarai/simproxy/releases
Or you can install by go get
:
$ go get github.com/ryotarai/simproxy
$ simproxy -config config.yml
https://github.com/ryotarai/simproxy/blob/master/config.example.yml
leastreq
method proxies incoming requests to backends that have the least outstanding requests.
'outstanding requests' means requests that the backend received but does not respond to yet.
$ make test
$ make build
$ ls bin/simproxy
bin/simproxy
Make sure that gox is installed.
$ make crossbuild
$ tree bin
bin
└── v0.1.4
├── simproxy_darwin_amd64_0.1.4
└── simproxy_linux_amd64_0.1.4
- Bump up the version in
cli/version.go
and commit it - Run
make release
(ghr is required)
Dependencies are managed by dep