IDP health check

Rainer Hoerbe rainer at hoerbe.at
Mon Feb 27 02:01:21 EST 2017


I want to implement a readiness and health status probe for the IDP. Basically I want to write a script that will return 0 if all is OK, 1 during startup and 2 if something is failing. I tried to probe /idp/status service, but from a few tests I tried it does not seem to be complete:

test 1: start idp and wait to become ready
port will not open until idp is started

test 2: start idp without metadata source (file based)
/idp/status: Service Unavailable

test 3: shut down ldap after successful start of idp; try to login
UI:	Login Failure: javax.naming.CommunicationException: connection closed
/idp/status: DataConnector idpLDAP: has never failed

test 4:  start idp while ldap is unavailable
idp-process.log: Uncaught runtime exception
/idp/status: HTML error page
idp recovers when starting ldap, but status page keeps failing


test 1 and 2 are good enough, but 3 and 4 not. Is there a better method, or some 3rd-party thing that would do this?


- Rainer


More information about the users mailing list