跳到主要内容

MIGRATE SINGLE TABLET TO A PARTICULAR DISK

在BE节点上迁移单个tablet到指定磁盘

提交迁移任务:

curl -X GET http://be_host:webserver_port/api/tablet_migration?goal=run&tablet_id=xxx&schema_hash=xxx&disk=xxx

返回值就是tablet迁移任务的提交结果:

    {
status: "Success",
msg: "migration task is successfully submitted."
}

    {
status: "Fail",
msg: "Migration task submission failed"
}

查询迁移任务状态:

curl -X GET http://be_host:webserver_port/api/tablet_migration?goal=status&tablet_id=xxx&schema_hash=xxx

返回值就是tablet迁移任务执行状态:

    {
status: "Success",
msg: "migration task is running",
dest_disk: "xxxxxx"
}

    {
status: "Success",
msg: "migration task has finished successfully",
dest_disk: "xxxxxx"
}

    {
status: "Success",
msg: "migration task failed.",
dest_disk: "xxxxxx"
}