mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Master Server API (markdown)
parent
1e7f0fca77
commit
99832ae258
|
@ -131,6 +131,11 @@ curl "http://10.0.2.15:9333/cluster/status?pretty=y"
|
|||
"10.0.2.15:9335"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Check Writable Volume Status
|
||||
|
||||
```
|
||||
curl "http://localhost:9333/dir/status?pretty=y"
|
||||
{
|
||||
"Topology": {
|
||||
|
@ -217,3 +222,243 @@ curl "http://localhost:9333/dir/status?pretty=y"
|
|||
"Version": "0.47"
|
||||
}
|
||||
```
|
||||
|
||||
### Check Volume Status
|
||||
```
|
||||
curl localhost:9333/vol/status?pretty=y
|
||||
{
|
||||
"Version": "30GB 2.24 ",
|
||||
"Volumes": {
|
||||
"DataCenters": {
|
||||
"DefaultDataCenter": {
|
||||
"DefaultRack": {
|
||||
"volume1:8080": [
|
||||
{
|
||||
"Id": 1,
|
||||
"Size": 313888,
|
||||
"ReplicaPlacement": {
|
||||
"SameRackCount": 2,
|
||||
"DiffRackCount": 0,
|
||||
"DiffDataCenterCount": 0
|
||||
},
|
||||
"Ttl": {
|
||||
"Count": 0,
|
||||
"Unit": 0
|
||||
},
|
||||
"DiskType": "ssd1",
|
||||
"Collection": "",
|
||||
"Version": 3,
|
||||
"FileCount": 1,
|
||||
"DeleteCount": 0,
|
||||
"DeletedByteCount": 0,
|
||||
"ReadOnly": false,
|
||||
"CompactRevision": 0,
|
||||
"ModifiedAtSecond": 1612388794,
|
||||
"RemoteStorageName": "",
|
||||
"RemoteStorageKey": ""
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"Size": 4724352,
|
||||
"ReplicaPlacement": {
|
||||
"SameRackCount": 0,
|
||||
"DiffRackCount": 0,
|
||||
"DiffDataCenterCount": 0
|
||||
},
|
||||
"Ttl": {
|
||||
"Count": 0,
|
||||
"Unit": 0
|
||||
},
|
||||
"DiskType": "ssd1",
|
||||
"Collection": "",
|
||||
"Version": 3,
|
||||
"FileCount": 2,
|
||||
"DeleteCount": 0,
|
||||
"DeletedByteCount": 0,
|
||||
"ReadOnly": false,
|
||||
"CompactRevision": 0,
|
||||
"ModifiedAtSecond": 1612386883,
|
||||
"RemoteStorageName": "",
|
||||
"RemoteStorageKey": ""
|
||||
},
|
||||
{
|
||||
"Id": 5,
|
||||
"Size": 1160,
|
||||
"ReplicaPlacement": {
|
||||
"SameRackCount": 0,
|
||||
"DiffRackCount": 0,
|
||||
"DiffDataCenterCount": 0
|
||||
},
|
||||
"Ttl": {
|
||||
"Count": 0,
|
||||
"Unit": 0
|
||||
},
|
||||
"DiskType": "ssd1",
|
||||
"Collection": "",
|
||||
"Version": 3,
|
||||
"FileCount": 1,
|
||||
"DeleteCount": 0,
|
||||
"DeletedByteCount": 0,
|
||||
"ReadOnly": false,
|
||||
"CompactRevision": 0,
|
||||
"ModifiedAtSecond": 1612386899,
|
||||
"RemoteStorageName": "",
|
||||
"RemoteStorageKey": ""
|
||||
},
|
||||
{
|
||||
"Id": 7,
|
||||
"Size": 114024,
|
||||
"ReplicaPlacement": {
|
||||
"SameRackCount": 0,
|
||||
"DiffRackCount": 0,
|
||||
"DiffDataCenterCount": 0
|
||||
},
|
||||
"Ttl": {
|
||||
"Count": 0,
|
||||
"Unit": 0
|
||||
},
|
||||
"DiskType": "ssd1",
|
||||
"Collection": "",
|
||||
"Version": 3,
|
||||
"FileCount": 2,
|
||||
"DeleteCount": 0,
|
||||
"DeletedByteCount": 0,
|
||||
"ReadOnly": false,
|
||||
"CompactRevision": 0,
|
||||
"ModifiedAtSecond": 1612386883,
|
||||
"RemoteStorageName": "",
|
||||
"RemoteStorageKey": ""
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"Size": 86544,
|
||||
"ReplicaPlacement": {
|
||||
"SameRackCount": 0,
|
||||
"DiffRackCount": 0,
|
||||
"DiffDataCenterCount": 0
|
||||
},
|
||||
"Ttl": {
|
||||
"Count": 0,
|
||||
"Unit": 0
|
||||
},
|
||||
"DiskType": "ssd1",
|
||||
"Collection": "",
|
||||
"Version": 3,
|
||||
"FileCount": 2,
|
||||
"DeleteCount": 0,
|
||||
"DeletedByteCount": 0,
|
||||
"ReadOnly": false,
|
||||
"CompactRevision": 0,
|
||||
"ModifiedAtSecond": 1612386959,
|
||||
"RemoteStorageName": "",
|
||||
"RemoteStorageKey": ""
|
||||
}
|
||||
],
|
||||
"volume2:8082": [
|
||||
{
|
||||
"Id": 4,
|
||||
"Size": 8,
|
||||
"ReplicaPlacement": {
|
||||
"SameRackCount": 0,
|
||||
"DiffRackCount": 0,
|
||||
"DiffDataCenterCount": 0
|
||||
},
|
||||
"Ttl": {
|
||||
"Count": 0,
|
||||
"Unit": 0
|
||||
},
|
||||
"DiskType": "ssd1",
|
||||
"Collection": "",
|
||||
"Version": 3,
|
||||
"FileCount": 0,
|
||||
"DeleteCount": 0,
|
||||
"DeletedByteCount": 0,
|
||||
"ReadOnly": false,
|
||||
"CompactRevision": 0,
|
||||
"ModifiedAtSecond": 1612386883,
|
||||
"RemoteStorageName": "",
|
||||
"RemoteStorageKey": ""
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
"Size": 3761664,
|
||||
"ReplicaPlacement": {
|
||||
"SameRackCount": 0,
|
||||
"DiffRackCount": 0,
|
||||
"DiffDataCenterCount": 0
|
||||
},
|
||||
"Ttl": {
|
||||
"Count": 0,
|
||||
"Unit": 0
|
||||
},
|
||||
"DiskType": "ssd1",
|
||||
"Collection": "",
|
||||
"Version": 3,
|
||||
"FileCount": 2,
|
||||
"DeleteCount": 0,
|
||||
"DeletedByteCount": 0,
|
||||
"ReadOnly": false,
|
||||
"CompactRevision": 0,
|
||||
"ModifiedAtSecond": 1612386883,
|
||||
"RemoteStorageName": "",
|
||||
"RemoteStorageKey": ""
|
||||
},
|
||||
{
|
||||
"Id": 1,
|
||||
"Size": 313888,
|
||||
"ReplicaPlacement": {
|
||||
"SameRackCount": 2,
|
||||
"DiffRackCount": 0,
|
||||
"DiffDataCenterCount": 0
|
||||
},
|
||||
"Ttl": {
|
||||
"Count": 0,
|
||||
"Unit": 0
|
||||
},
|
||||
"DiskType": "ssd1",
|
||||
"Collection": "",
|
||||
"Version": 3,
|
||||
"FileCount": 1,
|
||||
"DeleteCount": 0,
|
||||
"DeletedByteCount": 0,
|
||||
"ReadOnly": false,
|
||||
"CompactRevision": 0,
|
||||
"ModifiedAtSecond": 1612386883,
|
||||
"RemoteStorageName": "",
|
||||
"RemoteStorageKey": ""
|
||||
}
|
||||
],
|
||||
"volume3:8083": [
|
||||
{
|
||||
"Id": 1,
|
||||
"Size": 313888,
|
||||
"ReplicaPlacement": {
|
||||
"SameRackCount": 2,
|
||||
"DiffRackCount": 0,
|
||||
"DiffDataCenterCount": 0
|
||||
},
|
||||
"Ttl": {
|
||||
"Count": 0,
|
||||
"Unit": 0
|
||||
},
|
||||
"DiskType": "",
|
||||
"Collection": "",
|
||||
"Version": 3,
|
||||
"FileCount": 1,
|
||||
"DeleteCount": 0,
|
||||
"DeletedByteCount": 0,
|
||||
"ReadOnly": false,
|
||||
"CompactRevision": 0,
|
||||
"ModifiedAtSecond": 1612388996,
|
||||
"RemoteStorageName": "",
|
||||
"RemoteStorageKey": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Free": 30,
|
||||
"Max": 39
|
||||
}
|
||||
}
|
||||
```
|
Loading…
Reference in a new issue