查询tablet分布
Request
GET /api/tablets_distribution?group_by={enum}&partition_id={int}
Description
获取BE节点上每一个partition下的tablet在不同磁盘上的分布情况
Query parameters
group_by分组,当前只支持partitionpartition_id指定partition的id,选填,默认返回所有partition。
Request body
无
Response
1. ```
2. {
3. msg: "OK",
4. code: 0,
5. data: {
6. host: "***",
7. tablets_distribution: [
8. {
9. partition_id:***,
10. disks:[
11. {
12. disk_path:"***",
13. tablets_num:***,
14. tablets:[
15. {
16. tablet_id:***,
17. schema_hash:***,
18. tablet_size:***
19. },
21. ...
23. ]
24. },
26. ...
28. ]
29. }
30. ]
31. },
32. count: ***
33. }
34. ```
Examples
1. ```
2. curl "http://127.0.0.1:8040/api/tablets_distribution?group_by=partition&partition_id=123"
4. ```
