Health check for the Cloudbees CD/RO cluster

Monitor the health of a Cloudbees CD/RO cluster by running periodic checks that verify each server has a valid ZooKeeper session and is part of the JGroups cluster. If a health check fails five consecutive times, the server enters bootstrap mode and stops serving requests until it can successfully rejoin the cluster.

1 minute readScalability

In a clustered configuration, it is important that all Cloudbees CD/RO servers that are set up to participate in the cluster can communicate with ZooKeeper and with each other though JGroups. So each Cloudbees CD/RO server runs a periodic critical services health check to test that it has a valid session with ZooKeeper and that the server is part of the JGroups cluster for Cloudbees CD/RO.

The health check is run every minute by default. If it fails after five repeated attempts, the server goes into bootstrap mode so that it cannot serve any requests. Once in bootstrap mode, the server will periodically attempt to reinitialize its services. If it is successful and is able to join the JGroups cluster, it can serve incoming requests again.