Skip to main content
http://www.flickr.com/photos/gorupka/2343360380/

greenbalance

greenbalance is a simple TCP load balancer with round-robin and weighted random support built on gevent and wr.

Usage

Simple example; this will make the load balancer listen on port 8080 and use a custom configuration.

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

Arguments

Arguments accepted by the greenbalance command.

--version

Show program’s version number and exit.

-h, --help

Show this help message and exit.

-H, --host

IP or Hostname.

-p, --port

Listening Port.

-c, --config

Configuration file.

Example greenbalance.conf

greenbalance.conf is by default placed in /etc if the package was intalled with root privileges. If you have the package installed in a virtualenv you will have to create a configuration file manually and pass it with the --config or -c argument.

[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

See blow for OS-specific preparations.

Install greenbalance with sudo pip install greenbalance

Ubuntu

sudo apt-get install python-pip python-gevent; sudo pip install --upgrade pip

CentOS

Install python-pip and python-gevent from epel.

Documentation

Documentation is available at readthedocs.org

License

GPL

Metadata

Release files for greenbalance 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for greenbalance 0.1.0
File Size Uploaded Provenance Actions
greenbalance-0.1.0.tar.gz 3.5 kB Without provenance Details for greenbalance-0.1.0.tar.gz

Release files / greenbalance-0.1.0.tar.gz

Download URL greenbalance-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
353d24b4fb5c1d7b246a3c8606c89b3a329773220862737568908c136a000cf5
BLAKE2b-256 checksum
How to use checksums
f59a26f4d8367fa380722810bdf90ca15e75862f014832729e4fd45bc44a7a1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for greenbalance 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page