MIGRATE SINGLE TABLET TO A PARTICULAR DISK
Migrate single tablet to a particular disk.
Submit the migration task:
1. curl -X GET http://be_host:webserver_port/api/tablet_migration?goal=run&tablet_id=xxx&schema_hash=xxx&disk=xxx
The return is the submission result of the migration task:
1. {
2. status: "Success",
3. msg: "migration task is successfully submitted."
4. }
or
1. {
2. status: "Fail",
3. msg: "Migration task submission failed"
4. }
Show the status of migration task:
1. curl -X GET http://be_host:webserver_port/api/tablet_migration?goal=status&tablet_id=xxx&schema_hash=xxx
The return is the execution result of the migration task:
1. {
2. status: "Success",
3. msg: "migration task is running.",
4. dest_disk: "xxxxxx"
5. }
or
1. {
2. status: "Success",
3. msg: "migration task has finished successfully.",
4. dest_disk: "xxxxxx"
5. }
or
1. {
2. status: "Success",
3. msg: "migration task failed.",
4. dest_disk: "xxxxxx"
5. }
