EtienneDeneuve / healthz

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v3.0


Languages

Language:Python 100.0%