25.3.4. 使用 HTTP 端点检查健康检查


健康检查自动部署到 JBoss EAP 上的 健康 上下文中。

That means that in addition to being able to examine it using the management CLI, you can also obtain the current health using the HTTP endpoint. The default address for the `/health` endpoint, accessible from the management interfaces, is `http://127.0.0.1:9990/health`.
  1. 要使用 HTTP 端点来获取服务器当前的健康状况,可使用以下 URL:
http://HOST:9990/health

访问此上下文时,以 JSON 格式显示健康检查,指示服务器是否正常运行。此端点检查 存活度和 就绪度探测 的健康状况。

  1. /health/live 端点检查 存活度 探测的当前健康状况。
http://HOST:9990/health/live
  1. /health/ready 端点检查 就绪 探测的当前健康状况。
http://HOST:9990/health/ready
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.