Data Partition¶
Create¶
curl -v "http://127.0.0.1/dataPartition/create?count=40&name=test"
create a set of data partition
Parameter | Type | Description |
---|---|---|
count | int | the num of dataPartitions will be create |
name | string | the name of vol |
Get¶
curl -v "http://127.0.0.1/dataPartition/get?id=100" | python -m json.tool
Parameter | Type | Description |
---|---|---|
id | uint64 | the id of data partition |
response
{
"PartitionID": 100,
"LastLoadTime": 1544082851,
"ReplicaNum": 3,
"Status": 2,
"Replicas": {},
"PartitionType": "extent",
"PersistenceHosts": {},
"Peers": {},
"MissNodes": {},
"VolName": "test",
"RandomWrite": true,
"FileInCoreMap": {}
}