可以在浏览器中使用以下 URL 查看 Address Manager 的运行状况:[BAM IP]/servlets/health。
注: 在使用 HA 运行状况之前,复制中的 BAM 节点必须存在于 Address Manager 中。
注: 对于运行不佳的 Address Manager,以下情况必须属实:
- 从应用程序到数据库的往返时间大于 3 秒
- 数据库未连接
输入 URL 后,收到 JSON 响应。
运行正常 Address Manager 的响应
运行正常的 Address Manager 会带来一个 200 HTTP 响应,包括以下 JSON 响应:
{"timeToDatabase":2,"connectionStatus":"The Application to Database connection is healthy."}
运行不佳 Address Manager 的响应
运行不佳的 Address Manager 会带来一个 503 HTTP 响应。该 HTTP 响应还包括以下 JSON 响应之一:
如果从应用程序到数据库的往返时间大于 3 秒:
{"timeToDatabase":3024,"connectionStatus":"The Application to Database connection is not healthy.Round Trip time was more than 3 seconds."}
如果数据库未连接:
{"timeToDatabase":-1,"connectionStatus":"The Application to Database connection is not healthy.Could not connect to the database within 3000 milliseconds."}