GET TABLETS DISTRIBUTION BETWEEN DIFFERENT DISKS

获取BE节点上每一个partition下的tablet在不同磁盘上的分布情况

1. curl -X GET http://be_host:webserver_port/api/tablets_distribution?group_by=partition

返回值就是BE节点上每一个partition下的tablet在各个磁盘上的数量分布,只包含tablet数量。

1. {
2. msg: "OK",
3. code: 0,
4. data: {
5. host: "***",
6. tablets_distribution: [
7. {
8. partition_id:***,
9. disks:[
10. {
11. disk_path:"***",
12. tablets_num:***,
13. },
14. {
15. disk_path:"***",
16. tablets_num:***,
17. },

19. ...

21. ]
22. },
23. {
24. partition_id:***,
25. disks:[
26. {
27. disk_path:"***",
28. tablets_num:***,
29. },
30. {
31. disk_path:"***",
32. tablets_num:***,
33. },

35. ...

37. ]
38. },

40. ...

42. ]
43. },
44. count: ***
45. }
1. curl -X GET http://be_host:webserver_port/api/tablets_distribution?group_by=partition&partition_id=xxx

返回值就是BE节点上指定id的partition下的tablet在各个磁盘上的分布,包含tablet数量以及每一个tablet的id、schema hash和tablet size信息。

1. {
2. msg: "OK",
3. code: 0,
4. data: {
5. host: "***",
6. tablets_distribution: [
7. {
8. partition_id:***,
9. disks:[
10. {
11. disk_path:"***",
12. tablets_num:***,
13. tablets:[
14. {
15. tablet_id:***,
16. schema_hash:***,
17. tablet_size:***
18. },

20. ...

22. ]
23. },

25. ...

27. ]
28. }
29. ]
30. },
31. count: ***
32. }