Skip to content

eoyewobi/sre_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Before running commands please ensure you have the correct libraries installed.

You can do this by running this command in the directory of the script

pip install -r requirements.txt

Once all libraries are installed and the server is up and running, you can get all running servers by running

curl 0.0.0.0:<port>/status

or opening in your browser. To access the average usage of each service, you can do so by running the curl command below.

curl 0.0.0.0:<port>/services

and the following for service health

curl 0.0.0.0:<port>/service-health

This returns the service along with ips of the servers

Once the server is operational, you can run the following commands using the main.py file and stating the port using port flag

get-status
unhealthy-status
current-status

e.g. python main.py get-status --port 80 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages