https://github.com/kindermax/config-balancer
https://github.com/kindermax/config-balancer
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/kindermax/config-balancer
- Owner: kindermax
- Created: 2017-06-15T14:31:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-26T21:01:46.000Z (about 9 years ago)
- Last Synced: 2025-02-26T10:33:07.625Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Config balancer
- Basic interactive usage:
```
user# python3 main.py
> print
Current config:
{}
> add server
> server name: srv1
> add service
> service name: flask
> services amount: 10
> print
Current config:
{'srv1': {'flask': 10}}
> add server
> server name: srv2
> print
Current config:
{'srv1': {'flask': 10}, 'srv2': {}}
> add service
> service name: django
> services amount: 5
> print
Current config:
{'srv1': {'flask': 10}, 'srv2': {'django': 5}}
> save
> exit
user#
```