https://github.com/wpjunior/tcp-libra
Simple TCP/IP Load balancer written in python (tornado)
https://github.com/wpjunior/tcp-libra
Last synced: about 2 months ago
JSON representation
Simple TCP/IP Load balancer written in python (tornado)
- Host: GitHub
- URL: https://github.com/wpjunior/tcp-libra
- Owner: wpjunior
- Created: 2015-03-03T06:00:35.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-06T22:44:26.000Z (over 10 years ago)
- Last Synced: 2025-03-03T12:28:44.188Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TCP/Libra
-----
Simple TCP/IP Load balancer written in python (tornado)
Instalation
-----------
pip install tcp-libra
Running
-------
tcp-libra
API
---
GET localhost:4001/api/reals
----------------------------
List all reals
output:
[{"available": true, "connections": 0, "host": "localhost", "id": 1, "port": 8080}, {"available": true, "connections": 0, "host": "localhost", "id": 2, "port": 8080}]
POST localhost:4001/api/reals
-----------------------------
Create a real
Curl example:
curl -H "Content-Type: application/json" -XPOST http://localhost:4001/api/reals -d'{"host": "localhost", "port": 8080}'
output:
{"available": true, "connections": 0, "host": "localhost", "id": 2, "port": 8080}
DELETE localhost:4001/api/reals/:id
-----------------------------------
Delete a real
Curl example:
curl-json -XDELETE http://localhost:4001/api/reals/1