greenbalance is a TCP loadbalancer utility with round-robin and weighted random support built on gevent and wr.
greenbalance.conf is by default installed to /etc/greenbalance.conf
greenbalance --port 8080 --config /path/to/my.config
host = 0.0.0.0 # Bind to this (0.0.0.0 = all)
port = 3001 # Listening port.
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.
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 is available at readthedocs.org