aiohealthcheck: super-simple TCP health-check endpoint
Project description
aiohealthcheck
This tiny module provides a simple TCP endpoint, suitable for a healthcheck in your microservice application. All it provides is a simple TCP endpoint on a port to allow a container orchestration service to connect to, to verify that the application is up.
Demo
Pretty much just start up a long-lived task with the provided tcp_health_endpoint() coroutine function:
loop.create_task(aiohealthcheck.tcp_health_endpoint(port=5000))
The internal TCP server will be shut down when the task is cancelled, e.g., during your app’s shutdown sequence.
Kubernetes Example Configuration
ports: - name: liveness-port containerPort: 5000 livenessProbe: tcpSocket: port: liveness-port initialDelaySeconds: 15 periodSeconds: 20
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size aiohealthcheck-2018.7.1-py2.py3-none-any.whl (15.1 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size aiohealthcheck-2018.7.1.tar.gz (7.8 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for aiohealthcheck-2018.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b242832ddd053bee2fd67fd613c6d17c205331c935db01945901a108c8978fa |
|
MD5 | 9d3c7fa355a55b7be55bfaf04178b6fd |
|
BLAKE2-256 | 65849b64e78d82f668ab75175fa91c19cc866c3374b76549993ac05ef7643bf4 |