How to get the cluster status in java


#1

Hi Friends,

I have a cluster with 5 nodes and i want to get the couchbase cluster health and status. How can i approach to get the same information using Java API?

Thanks and Regards
Rajesh Reddy


#2

There’s a REST API that lets you get various data from the cluster, detailed here https://developer.couchbase.com/documentation/server/current/rest-api/rest-intro.html.

In addition there’s a Java API for subscribing to status events here https://developer.couchbase.com/documentation/server/current/sdk/java/collecting-information-and-logging.html, which allows you to build a sophisticated status monitoring solution.

Hope this helps :slight_smile: