Cluster

Overview

curl -v "http://10.196.59.198:17010/admin/getCluster" | python -m json.tool

display the base information of the cluster, such as the detail of metaNode,dataNode,vol and so on.

response

{
    "Name": "test",
    "LeaderAddr": "10.196.59.198:17010",
    "DisableAutoAlloc": false,
    "Applied": 225,
    "MaxDataPartitionID": 100,
    "MaxMetaNodeID": 3,
    "MaxMetaPartitionID": 1,
    "DataNodeStat": {},
    "MetaNodeStat": {},
    "VolStat": {},
    "MetaNodes": {},
    "DataNodes": {}
}

Freeze

curl -v "http://10.196.59.198:17010/cluster/freeze?enable=true"

if cluster is freezed,the vol never allocates dataPartitions automatically

Parameters
Parameter Type Description
enable bool if enable is true,the cluster is freezed