Health-Check

深度健康检查(实测依赖与资源)/ Deep health check (probes dependencies and resources)

Changed on

[中文]

用途说明:

  • 深度健康检查:实测 MySQL / Redis 连通性与延迟、事件循环卡顿情况、 数据库连接池占用、进程内存与文件描述符。
  • 用于多节点监控定位"半死"节点(进程存活但依赖异常/事件循环被阻塞)。

返回结果:

  • status: ok 或 degraded(任一关键依赖异常或事件循环当前被阻塞)。
  • checks.mysql / checks.redis: 实测状态与延迟(毫秒)。
  • checks.event_loop: 事件循环卡顿统计(当前延迟、阻塞次数、最长阻塞)。
  • checks.db_pool: 数据库连接池占用。
  • checks.process: 进程内存(MB)、线程数、文件描述符数量。

[English]

Purpose:

  • Deep health check: probes MySQL / Redis connectivity and latency, event-loop blockage stats, DB pool occupancy, process memory and file descriptors.
  • Useful for spotting "half-dead" nodes (process alive but dependencies failing or the event loop blocked).
get/api/v1/health/deep

Request

  • Base URL
    https://api.tikhub.io (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Response

Successful Response

unknown required

Changes