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. },
  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

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. },
  19. ...
  20. ]
  21. },
  22. ...
  23. ]
  24. }
  25. ]
  26. },
  27. count: ***
  28. }