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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiohealthcheck-2018.7.1.tar.gz.
File metadata
- Download URL: aiohealthcheck-2018.7.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbd9824c36e899df2ff38f9ba778edd23a58d9dab5b47fd49a0723a901492fc2
|
|
| MD5 |
1874f45b8bd97619436434d879cf4e0b
|
|
| BLAKE2b-256 |
3634f7a665ef8d06cd08791bac23ff0251e3cbda6ca4c3c53477e5e623a20a24
|
File details
Details for the file aiohealthcheck-2018.7.1-py2.py3-none-any.whl.
File metadata
- Download URL: aiohealthcheck-2018.7.1-py2.py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b242832ddd053bee2fd67fd613c6d17c205331c935db01945901a108c8978fa
|
|
| MD5 |
9d3c7fa355a55b7be55bfaf04178b6fd
|
|
| BLAKE2b-256 |
65849b64e78d82f668ab75175fa91c19cc866c3374b76549993ac05ef7643bf4
|