greenbalance ist ein TCP Loadbalancer Dienstprogramm mit Round-Robin und gewichtete Zufalls Unterstützung gevent und wr gebaut.
greenbalance.conf wird standardmäßig installiert, um /etc/greenbalance.conf
Verwendung
greenbalance --port 8080 --config /path/to/my.config
Beispiel greenbalance.conf
[Einstellungen]
host = 0.0.0.0 # Bind, dies (0.0.0.0 = alle)
port = 3001 # Listening-Port.
[Knoten]
Backend1 3101 = 20 # 20% der Anfragen zu bedienen.
192.168.100.7 3102 = 40 # 40% der Anfragen zu bedienen.
localhost 3103 = 40 # 40% der Anfragen zu bedienen.
Installation
& Nbsp; Ubuntu: sudo apt-get install python-pip python-gevent; sudo pip pip --upgrade installieren
Installieren greenbalance mit sudo pip installieren greenbalance sudo ist erforderlich, weil die Konfigurationsdatei in / etc beschrieben werden
Dokumentation
Die Dokumentation ist in readthedocs.org
Anforderungen :
- Python
Kommentare nicht gefunden