Skip to main content

Weighted Random Loadbalancer for TCP.

Project description

http://www.flickr.com/photos/gorupka/2343360380/

greenbalance

greenbalance is a TCP loadbalancer with round-robin and weighted random support built on gevent and wr

greenbalance.conf is by default installed to /etc/greenbalance.conf

Usage

$ greenbalance --port 8080 --config /path/to/my.config

Example greenbalance.conf

[settings]
host = 0.0.0.0           # Bind to this (0.0.0.0 = all)
port = 3001              # Listening port.

[nodes]
backend1 3101 = 20       # will serve 20% of the requests.
192.168.100.7 3102 = 40  # will serve 40% of the requests.
localhost 3103 = 40      # will serve 40% of the requests.

Installation

  • Ubuntu: sudo apt-get install python-pip python-gevent; sudo pip install --upgrade pip

Install greenbalance with sudo pip install greenbalance sudo is needed because the configuration file will be written to /etc

Documentation

Documentation is available at readthedocs.org

License

GPL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

greenbalance-0.0.3.tar.gz (3.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page