- git clone git@github.com:cheeeee/distributed_ws_cluster_docker.git
- cd distributed_ws_cluster_docker/cluster
- docker-compose build
- docker-compose up
- cd distributed_ws_cluster_docker/cluster
- docker-compose scale client=n
where n = desired number of clients. - Check terminal with main docker-compose output.
Monitor will automatically add new container if load more then 75% (users / limit).
- cd distributed_ws_cluster_docker/cluster
- python3 service_monitor.py
- Go to http://localhost/api/v1/limits/
- Fill field with desired limit and press enter.
- In 5-7 second control app will recieve new limit from websocket server.
- request library for monitor.
- Free 10.5.0.0/24 subnet.
- Last docker.