GET TABLETS DISTRIBUTION BETWEEN DIFFERENT DISKS
Get the distribution of tablets under each partition between different disks on BE node
1. curl -X GET http://be_host:webserver_port/api/tablets_distribution?group_by=partition
The return is the number distribution of tablets under each partition between different disks on BE node, which only include tablet number.
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
The return is the number distribution of tablets under the particular partition between different disks on BE node, which include tablet number, tablet id, schema hash and 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. }
