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. },
  18. ...
  19. ]
  20. },
  21. {
  22. partition_id:***,
  23. disks:[
  24. {
  25. disk_path:"***",
  26. tablets_num:***,
  27. },
  28. {
  29. disk_path:"***",
  30. tablets_num:***,
  31. },
  32. ...
  33. ]
  34. },
  35. ...
  36. ]
  37. },
  38. count: ***
  39. }
  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. },
  19. ...
  20. ]
  21. },
  22. ...
  23. ]
  24. }
  25. ]
  26. },
  27. count: ***
  28. }