[
https://issues.jboss.org/browse/ISPN-6679?page=com.atlassian.jira.plugin....
]
Sebastian Łaskawiec commented on ISPN-6679:
-------------------------------------------
As a work around we can use a simple, CLI command for checking if the cluster is ready:
{code}
./ispn-cli.sh -c
'/subsystem=datagrid-infinispan/cache-container=clustered/distributed-cache=*:read-attribute(name=cache-rebalancing-status)'
| grep 'PENDING\|IN_PROGRESS\|SUSPENDED'
returns 0 if is *not* ready!
{code}
And there is also a work around for a liveness check:
{code}
./ispn-cli.sh -c '/:read-attribute(name=server-state)' | awk
'/result/{gsub("\"", "", $3); print $3}' | grep -v
running
returns 0 if is *not* running!
{code}
Implement REST readiness and healthcheck probe in Kubernetes
------------------------------------------------------------
Key: ISPN-6679
URL:
https://issues.jboss.org/browse/ISPN-6679
Project: Infinispan
Issue Type: Feature Request
Components: Cloud Integrations
Reporter: Sebastian Łaskawiec
Assignee: Sebastian Łaskawiec
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)