Skip to content

Python Api to check the state of a server and return a 200 or 503 pages for Load Balancer

License

Notifications You must be signed in to change notification settings

EtienneDeneuve/healthz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

healthz

Python Api to check the state of a server and return a 200 or 503 pages for Load Balancer

Dependencies installation

You need to install the required python module using :

sudo pip install -r requirements.txt

how to use it

First modify the config.yaml to remove checks you don't need, and configure with your values and then launch it using

# you need to launch it as root as pyping need that
python healtz.py <listening port, not mandatory, if you want 8080>

Exclude file

You can add a file named exclude in the root folder of the script to exclude temporary the server.

About

Python Api to check the state of a server and return a 200 or 503 pages for Load Balancer

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages