Skip to main content

GET TABLETS DISTRIBUTION BETWEEN DIFFERENT DISKS

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

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.

{
msg: "OK",
code: 0,
data: {
host: "***",
tablets_distribution: [
{
partition_id:***,
disks:[
{
disk_path:"***",
tablets_num:***,
},
{
disk_path:"***",
tablets_num:***,
},

...

]
},
{
partition_id:***,
disks:[
{
disk_path:"***",
tablets_num:***,
},
{
disk_path:"***",
tablets_num:***,
},

...

]
},

...

]
},
count: ***
}
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.

{
msg: "OK",
code: 0,
data: {
host: "***",
tablets_distribution: [
{
partition_id:***,
disks:[
{
disk_path:"***",
tablets_num:***,
tablets:[
{
tablet_id:***,
schema_hash:***,
tablet_size:***
},

...

]
},

...

]
}
]
},
count: ***
}