https://github.com/mohammadhasanii/liara-adjust-scale-python
This service is an automatic scaler for Liara's cloud infrastructure and does not require anything to run. It provides the ability to automatically check the app scale every few seconds and zoom in or out.
https://github.com/mohammadhasanii/liara-adjust-scale-python
autoscale autoscaling kubernetes liara loader python
Last synced: 3 months ago
JSON representation
This service is an automatic scaler for Liara's cloud infrastructure and does not require anything to run. It provides the ability to automatically check the app scale every few seconds and zoom in or out.
- Host: GitHub
- URL: https://github.com/mohammadhasanii/liara-adjust-scale-python
- Owner: mohammadhasanii
- Created: 2023-04-21T16:53:54.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-21T17:12:05.000Z (over 2 years ago)
- Last Synced: 2025-04-03T11:40:19.471Z (6 months ago)
- Topics: autoscale, autoscaling, kubernetes, liara, loader, python
- Language: Python
- Homepage: https://liara.ir
- Size: 3.91 KB
- Stars: 11
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Liara-Adjust-Scale-Python
This service is an automatic scaler for Liara's cloud infrastructure and does not require anything to run. It provides the ability to automatically check the app scale every few seconds and zoom in or out.

## Documentation
```
1-First of all, make sure that Python is installed on your system2-To connect to the program, you must receive your token from Liara
3- After receiving the token from Liara, change the token in the token variable in the main.py file
4-Your application conainer runs once every 1000 seconds and the scale of the program changes automatically
5-If the program needs to increase the resources, the scale will be bigger, otherwise, if it needs to reduce the resources, the scale of the program will be as small as possible.
```
[Get Token Api](https://console.liara.ir/API)## Running Application
To run tests, run the following command
```bash
python main.py
```## Run the container on Liara
[Deploy docker documentation](https://docs.liara.ir/app-deploy/docker/getting-started)