loadbalancer

command module
v0.0.0-...-114d6a6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

README

labeled-loadbalancer

Load balance on hyper.sh cloud.

HTTP example:

hyper run -itd -p 80 nginx
hyper run -itd -p 80 httpd
hyper run -e HYPER_ACCESS_KEY=ak -e HYPER_SECRET_KEY=sk -itd -p 80:80 hyperhq/labeled-loadbalancer dumb-init /loadbalancer --server=tcp://us-west-1.hyper.sh:443 --service-port=80 --container-port=80 --algorithm=roundrobin --health-check-fall=3 --health-check-interval=5 --health-check-rise=2 --protocol=http --server-version=1.23 --session-affinity=true  --labels='app=nginx'

HTTPS Termination:

hyper run -e HYPER_ACCESS_KEY=ak -e HYPER_SECRET_KEY=sk -itd -p 443 hyperhq/labeled-loadbalancer dumb-init /loadbalancer --server=tcp://us-west-1.hyper.sh:443 --service-port=443 --container-port=80 --algorithm=roundrobin --health-check-fall=3 --health-check-interval=5 --health-check-rise=2 --protocol=httpsTerm --server-version=1.23 --session-affinity=true --ssl-cert="xxxx" --labels='app=nginx'

Features

  • Run haproxy as a container to do load babalancing
  • Select backend containers by labels
  • Custum haproxy settings
  • Support http/https/tcp/httpsTerm protocol
  • Custum enabling haproxy stats
  • Use Hyper.sh events websocket API for container status update

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
signature
Based on the AWS Signature Algorithm Sign4 http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html Based on the Implementation of https://github.com/smartystreets/go-aws-auth - Both Sign and Check - hostname of Hyper - change header X-AMZ- to X-Hyper- - changed normuri, treat // as /
Based on the AWS Signature Algorithm Sign4 http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html Based on the Implementation of https://github.com/smartystreets/go-aws-auth - Both Sign and Check - hostname of Hyper - change header X-AMZ- to X-Hyper- - changed normuri, treat // as /

Jump to

Keyboard shortcuts

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