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.

Home Page:https://liara.ir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Logo

Documentation

1-First of all, make sure that Python is installed on your system

2-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

Running Application

To run tests, run the following command

  python main.py 

Run the container on Liara

Deploy docker documentation

About

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://liara.ir


Languages

Language:Python 95.3%Language:Dockerfile 4.7%