Managing Health Check Endpoint
The TIBCO Order Management supports the health check endpoint to check the overall health status of the application resources like the EMS, Database, and Diskspace. You can check the health status of any service by putting the respective host and port number of that service in the following format.
You can find the number of database connection objects being used from the pool. You can set the getTotalDsConnection
flag as true to enable the enhanced health check where you can see the number of database connections in the output.
For Authorization service, the getTotalDsConnection
flag can be set in the $OM_HOME/roles/authorization-service/standalone/config/application.properties
file.
For all other services, the getTotalDsConnection
flag can be set in the $OM_HOME/seed-data\app-properties/ConfigValues_Common.json
file.
The following list shows the health check endpoints:
-
http://<host>:<port>/management/health/readiness
-
http://<host>:<port>/management/health/liveness
Example of health check response:
{"status":"UP","details":{"db":{"status":"UP","details":{"name":"Configurator", "status":"RUNNING","database":"PostgreSQL"}},"diskSpace":{"status":"UP", "details":{"total":254720077824,"free":93111214080,"threshold":10485760}}}}