3.4.5. 决定服务器健康和就绪度的就绪度探测
JBoss EAP XP 3.0.0 支持三种就绪度探测,以确定服务器健康和就绪度。
-
server-status- 当 server-state运行时返回UP。 -
boot-errors- 当探测检测到没有引导错误时返回UP。 -
deployment-status- 当所有部署的状态为OK时,返回UP。
这些就绪度探测会被默认启用。您可以使用 MicroProfile Config property mp.health.disable-default-procedures 来禁用探测。
以下示例演示了将三个探测与 检查操作结合使用 :
[standalone@localhost:9990 /] /subsystem=microprofile-health-smallrye:check
{
"checks": [
{
"name": "empty-readiness-checks",
"status": "UP"
},
{
"name": "empty-liveness-checks",
"status": "UP"
},
{
"data": {
"value": "running"
},
"name": "server-state",
"status": "UP"
},
{
"name": "deployments-status",
"status": "UP"
},
{
"name": "boot-errors",
"status": "UP"
}
],
"status": "UP"
}