[infinispan-issues] [JBoss JIRA] (ISPN-6679) Implement REST readiness and healthcheck probe in Kubernetes

Sebastian Łaskawiec (JIRA) issues at jboss.org
Tue Jul 26 06:28:00 EDT 2016


    [ https://issues.jboss.org/browse/ISPN-6679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270460#comment-13270460 ] 

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)



More information about the infinispan-issues mailing list