Enhancement
Currently, TiFlash provide the "/tifash/store-status" http API for health check. If the API return "Running", it means that TiFlash is ready for serving request. But the API is hard to extend.
To align with industry best practices, we propose introducing a new, more comprehensive health check API.
Proposal
Aligned with tikv/pd#9846.
We propose introducing a new set of health check endpoints, livez and readyz, aligning with Kubernetes and etcd conventions (KEP-4331).
Reference: https://kubernetes.io/docs/reference/using-api/health-checks/
Introduce a New /tiflash/readyz Endpoint
Introduce /tiflash/livez for Liveness Checks
GET /tiflash/livez
- This endpoint will simply check if the process is alive
Enhancement
Currently, TiFlash provide the "/tifash/store-status" http API for health check. If the API return "Running", it means that TiFlash is ready for serving request. But the API is hard to extend.
To align with industry best practices, we propose introducing a new, more comprehensive health check API.
Proposal
Aligned with tikv/pd#9846.
We propose introducing a new set of health check endpoints, livez and readyz, aligning with Kubernetes and etcd conventions (KEP-4331).
Reference: https://kubernetes.io/docs/reference/using-api/health-checks/
Introduce a New /tiflash/readyz Endpoint
GET /tiflash/readyzGET /tiflash/readyz/<check_name>GET /tiflash/readyz?exclude=<check_name>Introduce /tiflash/livez for Liveness Checks
GET /tiflash/livez