Meta Partition¶
Create¶
curl -v "http://127.0.0.1/metaPartition/create?name=test&start=10000"
split meta partition manually,if max meta partition of the vol which range is [0,end),end larger than start parameter,old meta partition range is[0,start], new meta partition is [start+1,end)
Parameter | Type | Description |
---|---|---|
name | string | the name of vol |
start | uint64 | the start value of meta partition which will be create |
Get¶
curl -v "http://127.0.0.1/client/metaPartition?id=1" | python -m json.tool
show base information of meta partition,such as id,start,end and so on.
Parameter | Type | Description |
---|---|---|
id | uint64 | the id of meta partition |
response
{
"PartitionID": 1,
"Start": 0,
"End": 9223372036854776000,
"MaxNodeID": 1,
"Replicas": {},
"ReplicaNum": 3,
"Status": 2,
"PersistenceHosts": {},
"Peers": {},
"MissNodes": {}
}