查询tablet分布
查询tablet分布
Request
GET /api/tablets_distribution?group_by={enum}&partition_id={int}
Description
获取BE节点上每一个partition下的tablet在不同磁盘上的分布情况
Query parameters
group_by
分组,当前只支持partition
partition_id
指定partition的id,选填,默认返回所有partition。
Request body
无
Response
```
{
msg: "OK",
code: 0,
data: {
host: "***",
tablets_distribution: [
{
partition_id:***,
disks:[
{
disk_path:"***",
tablets_num:***,
tablets:[
{
tablet_id:***,
schema_hash:***,
tablet_size:***
},
...
]
},
...
]
}
]
},
count: ***
}
```
Examples
```
curl "http://127.0.0.1:8040/api/tablets_distribution?group_by=partition&partition_id=123"
```