View Tablet Distribution

Request

GET /api/tablets_distribution?group_by={enum}&partition_id={int}

Description

Get the distribution of tablets under each partition between different disks on BE node

Query parameters

  • group_by only supports partition
  • partition_id ID of the specified partition,Optional with default all partition.

Request body

None

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. ```