getAllClusters
Syntax
getAllClusters()
Arguments
None
Details
Return the names of all clusters. This function can only be executed by an administrator on the MoM (Master of Masters) cluster.
Return value: A table with the following columns:
- clusterName: A string indicating the name of the cluster.
- clusterType: A string indicating the type of the cluster. “momCluster” refers to the an MoM cluster in a multi-cluster environment, while ”memberCluster” refers to a member cluster.
- status: An integer indicating whether the cluster is alive. 0: Abnormal; 1: Alive.
Examples
getAllClusters()
clusterName | clusterType | status |
---|---|---|
member_cluster2 | memberCluster | 1 |
mom_cluster1 | momCluster | 1 |
member_cluster1 | memberCluster | 1 |