Is there an API that can provide count of active nodes in a cluster? #5786
-
Hi, We wanted to know whether any API available that can provide count of active nodes not configured node in a cluster? Ex. Let's say I've set up a cluster with two nodes. Now I've down one node, the API should return result 1. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Clusters of two nodes are explicitly not supported. There are node metrics, including partitions in effect, exposed by the HTTP API. The definition of "down" in distributed systems is broad, so other metrics can be of high relevance as well. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Clusters of two nodes are explicitly not supported.
There are node metrics, including partitions in effect, exposed by the HTTP API.
With Prometheus all metrics are node-local, so the list of nodes becomes the list of nodes that report metrics. IIRC partitions in effect is still one of the exposed metrics.
The definition of "down" in distributed systems is broad, so other metrics can be of high relevance as well.