[BAM IP]/servlets/health という URL をブラウザに入力すると、Address Manager の正常性状態を確認できます。
注: HA 正常性状態を使用する前に、レプリケーション内の BAM ノードが Address Manager に存在していなければなりません。
注: Address Manager に異常がある場合、以下の条件が当てはまります。
- アプリケーションからデータベースまでのラウンド トリップ時間が 3 秒を超える
- データベースが接続されていない
URL を入力すると、JSON 応答を受信します。
正常な Address Manager の応答
Address Manager が正常な場合、以下の JSON 応答を含む 200 HTTP 応答が返されます。
{"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."}