SOFABoot 支持对中间件各组件的健康检查功能。加入健康检查扩展之后,可以直接在浏览器中访问 http://localhost:8080/actuator/readiness 以查看各组件 Readiness Check 的结果。
下表介绍了 SOFABoot 对各组件进行健康检查的接入内容。
组件 | 健康检查内容 | 说明 | 结果示例 |
SOFARPC SOFAREST | 发布和引用的服务 | 列出所有发布和引用的服务信息。检查通过则状态为 UP,否则为 DOWN。 | "SOFABoot Modules":
{"status": "UP",
"com.alipay.sofa.service-provider": "passed",
"com.alipay.sofa.service-consumer": "passed"
}
|
DDCS | 是否能从 AntVip 获取 DDCS 服务地址 | 能获取到 drmdata 服务地址则检查通过,状态为 UP,否则为 DOWN。 | - 检查通过,在日志
common-default.log 中打印:
component readiness check success. component name[DDCS]
- 检查失败,在日志
common-error.log 中打印:
component readiness check failed. component name[DDCS]
|
Scheduler | 配置检查 | app 和 instanceId 的配置是否为空 | - 检查通过,在日志
common-default.log 中打印: component readiness check success. component name[SCHEDULER]
- 检查失败,在日志
common-error.log 中打印:
component readiness check failed. component name[SCHEDULER]
|
长连接客户端检查 | 长连接的客户端是否启动成功 |
路由服务检查 | 路由服务是否初始化成功 |
消息队列 | 客户端 pub 检查 | pub bean 是否启动成功 | - 检查通过,在日志
common-default.log 中打印:
component readiness check success. component name[MQ]
- 检查失败,在日志
common-error.log 中打印:
component readiness check failed. component name[MQ]
|
客户端 sub 检查 | sub bean 是否启动成功 |
分布式事务 | 客户端到服务端的长连接 | 客户端到服务端的长连接是否创建成功 | - 检查通过,在日志
common-default.log 中打印:
component readiness check success. component name[dtx]; no retry.
- 检查失败,在日志
common-error.log 中打印:
component readiness check failed. component name[dtx]; no retry
|
在文档使用中是否遇到以下问题
更多建议
匿名提交