Skip to content

tharakawijekoon/wso2-hazelcast-health-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

wso2-hazelcast-health-check

Health checker for monitoring the hazelcast cluster status

Build

Clone the repository and in the directory where the pom file is located, issue the following command to build the project.

mvn clean install

Deploy

After successfully building the project, the resulting jar file can be retrieved from the target directory. (the already built jar is included in the release section) copy the resulting jar to the <IS_HOME>/repository/components/dropins/ directory.

The health check API and this health checker can be enabled by adding the following configurations in the deployment.toml.

[carbon_health_check]
enable= true

[[health_checker]]
name = "HazelcastHealthChecker"
order="87"

Testing

Start the server and send a GET request to the health check API

Sample curl request :

curl -k -v https://localhost:9443/api/health-check/v1.0/health

Response :

{
    "health": [
        {
            "key": "cluster.status",
            "value": "ACTIVE"
        },
        {
            "key": "cluster.members",
            "value": "2"
        }
    ]
}

About

health checker for monitoring the hazelcast cluster status

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages