MIGRATE SINGLE TABLET TO A PARTICULAR DISK
在BE节点上迁移单个tablet到指定磁盘
提交迁移任务:
1. curl -X GET http://be_host:webserver_port/api/tablet_migration?goal=run&tablet_id=xxx&schema_hash=xxx&disk=xxx
返回值就是tablet迁移任务的提交结果:
1. {
2. status: "Success",
3. msg: "migration task is successfully submitted."
4. }
或
1. {
2. status: "Fail",
3. msg: "Migration task submission failed"
4. }
查询迁移任务状态:
1. curl -X GET http://be_host:webserver_port/api/tablet_migration?goal=status&tablet_id=xxx&schema_hash=xxx
返回值就是tablet迁移任务执行状态:
1. {
2. status: "Success",
3. msg: "migration task is running",
4. dest_disk: "xxxxxx"
5. }
或
1. {
2. status: "Success",
3. msg: "migration task has finished successfully",
4. dest_disk: "xxxxxx"
5. }
或
1. {
2. status: "Success",
3. msg: "migration task failed.",
4. dest_disk: "xxxxxx"
5. }
