Unable to access Infinispan Health check in domain mode
daroleary Oct 11, 2018 1:13 PMHi, I've been testing health checks in Infinispan and been able to access it using standalone but not domain mode.
TLDR; Health check doesn't return any information in domain mode. On standalone mode however, it works just fine.
So the following works without issue for standalone mode:
curl --digest -L -D - "http://infinispan-server:9990/management/subsystem/datagrid-infinispan/cache-container/platform_clustered_caches/health/HEALTH?operation=resource&include-runtime=true&json.pretty=1" --header "Content-Type: application/json" -u username:password
In domain mode, if I try the same it indicates that the resource is not available.
So instead, I tried using the infinispan console using domain mode and I see the following:
vm ➜ bin ./ispn-cli.sh --controller=infinispan-server:9990
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
[domain@infinispan-server:9990 /]
[domain@infinispan-server:9990 /] cd profile=clustered
[domain@infinispan-server:9990 profile=clustered] cd subsystem
[domain@infinispan-server:9990 subsystem] cd datagrid-infinispan
[domain@infinispan-server:9990 subsystem=datagrid-infinispan] cd cache-container
[domain@infinispan-server:9990 cache-container] cd platform_clustered_caches
[domain@infinispan-server:9990 cache-container=platform_clustered_caches] cd health=
[domain@infinispan-server:9990 health] cd HEALTH
[domain@infinispan-server:9990 health=HEALTH] ls # no information available
However trying what seems the equivalent on standalone mode does function as expected:
./ispn-cli.sh --controller=infinispan-server:9990
[disconnected /] connect
[standalone@192.168.6.22:9990 /]
[standalone@192.168.6.22:9990 /] cd subsystem
[standalone@192.168.6.22:9990 subsystem] cd datagrid-infinispan
[standalone@192.168.6.22:9990 subsystem=datagrid-infinispan] cd cache-container
[standalone@192.168.6.22:9990 cache-container] cd platform_clustered_caches
[standalone@192.168.6.22:9990 cache-container=platform_clustered_caches] cd health
[standalone@192.168.6.22:9990 health] cd HEALTH
[standalone@192.168.6.22:9990 health=HEALTH] ls
cache-health=[..]
cluster-health=HEALTHY
cluster-name=platform_clustered_caches
Following this I even tried to reset to the default infinispan domain setup and I still can't see any health check information.
Wondering if the health check functionality has been implemented with domain mode yet? And if there is, is there anything that specifically needs to be done to use it?
Thanks so much!
Darren