In a flow service, how do I check whether the other servers in a cluster are online/offline? Is there a built-in service I can use?
My Scenario:
I work on a clustered environment (servers a & b). In the flow service, I need to invoke pub.trigger:suspendRetrieval across all servers that are up at the time. suspendRetrieval has an option to ‘applyChangeAcrossCluster’, but I’ve seen from experience that when server b is down, the option does not apply successfully:
[ISS.0085.9203] Errors occurred while updating remote aliases (1 of 2 updates failed).
So I’d like to avoid this error by doing a preliminary check:
If server a & b are up
Then applyChangeAcrossCluster
Else
Do not applyChangeAcrossCluster … only on current server.
So if you can think of a way to check server availability, then do tell.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services