nav3916872
nav3916872

Reputation: 998

Know when Zookeeper connection is lost in a Springboot application

Is there a way to check whether zookeeper connection is lost while running Spring boot application ? After some research I came across health indicators from spring boot . But i cant find any article related to checking the health of the zookeeper connection from Spring boot. Or is there a simple,effective way out without using Health indicators ?

Upvotes: 1

Views: 836

Answers (1)

Persia
Persia

Reputation: 895

springboot has spring-cloud-zookeeper, it has ZookeeperHealthIndicator . if you use spring-cloud-zookeeper you do not need to care about it. or you can write your own zookeeper health indicator and take it as a reference.

Upvotes: 2

Related Questions