diff --git a/docs/user-guide/deployments-administration/manage-data/region-migration.md b/docs/user-guide/deployments-administration/manage-data/region-migration.md index 61c073d25..193c7d4f8 100644 --- a/docs/user-guide/deployments-administration/manage-data/region-migration.md +++ b/docs/user-guide/deployments-administration/manage-data/region-migration.md @@ -55,6 +55,7 @@ ADMIN migrate_region(4398046511104, 1, 2, 60); The parameters of `migrate_region`: ```sql +ADMIN migrate_region(region_id, from_peer_id, to_peer_id); ADMIN migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); ``` @@ -63,7 +64,7 @@ ADMIN migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); | `region_id` | The region id. | **Required** | | | `from_peer_id` | The peer id of the migration source(Datanode). | **Required** | | | `to_peer_id` | The peer id of the migration destination(Datanode). | **Required** | | -| `replay_timeout` | The timeout(secs) of replay data. If the new Region fails to replay the data within the specified timeout, the migration will fail, however the data in the old Region will not be lost. | Optional | | +| `replay_timeout` | The timeout (in seconds) for replaying data. Defaults to 300 seconds if omitted. If the new Region fails to replay the data within the specified timeout, the migration will fail, however the data in the old Region will not be lost. | Optional | | ## Query the migration state @@ -80,4 +81,3 @@ If it's done, outputs the state in JSON: ``` Of course, you can confirm the region distribution by querying from `region_peers` and `partitions` in `information_schema`. - diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/manage-data/region-migration.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/manage-data/region-migration.md index f8010c9ed..0752ec7db 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/manage-data/region-migration.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/manage-data/region-migration.md @@ -54,6 +54,7 @@ ADMIN migrate_region(4398046511104, 1, 2, 60); `migrate_region` 参数说明: ```sql +ADMIN migrate_region(region_id, from_peer_id, to_peer_id); ADMIN migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); ``` @@ -62,7 +63,7 @@ ADMIN migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); | `region_id` | Region Id | **Required** | | | `from_peer_id` | 迁移起始节点 (Datanode) 的 peer id。 | **Required** | | | `to_peer_id` | 迁移目标节点 (Datanode) 的 peer id。 | **Required** | | -| `replay_timeout` | 迁移时回放数据的超时时间(单位:秒)。如果新 Region 未能在指定时间内回放数据,迁移将失败,旧 Region 中的数据不会丢失。 | Optional | | +| `replay_timeout` | 迁移时回放数据的超时时间(单位:秒)。省略时默认 300 秒。如果新 Region 未能在指定时间内回放数据,迁移将失败,旧 Region 中的数据不会丢失。 | Optional | | ## 查询迁移状态 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.0/user-guide/deployments-administration/manage-data/region-migration.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.0/user-guide/deployments-administration/manage-data/region-migration.md index f8010c9ed..0752ec7db 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.0/user-guide/deployments-administration/manage-data/region-migration.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.0/user-guide/deployments-administration/manage-data/region-migration.md @@ -54,6 +54,7 @@ ADMIN migrate_region(4398046511104, 1, 2, 60); `migrate_region` 参数说明: ```sql +ADMIN migrate_region(region_id, from_peer_id, to_peer_id); ADMIN migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); ``` @@ -62,7 +63,7 @@ ADMIN migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); | `region_id` | Region Id | **Required** | | | `from_peer_id` | 迁移起始节点 (Datanode) 的 peer id。 | **Required** | | | `to_peer_id` | 迁移目标节点 (Datanode) 的 peer id。 | **Required** | | -| `replay_timeout` | 迁移时回放数据的超时时间(单位:秒)。如果新 Region 未能在指定时间内回放数据,迁移将失败,旧 Region 中的数据不会丢失。 | Optional | | +| `replay_timeout` | 迁移时回放数据的超时时间(单位:秒)。省略时默认 300 秒。如果新 Region 未能在指定时间内回放数据,迁移将失败,旧 Region 中的数据不会丢失。 | Optional | | ## 查询迁移状态 diff --git a/versioned_docs/version-1.0/user-guide/deployments-administration/manage-data/region-migration.md b/versioned_docs/version-1.0/user-guide/deployments-administration/manage-data/region-migration.md index 61c073d25..193c7d4f8 100644 --- a/versioned_docs/version-1.0/user-guide/deployments-administration/manage-data/region-migration.md +++ b/versioned_docs/version-1.0/user-guide/deployments-administration/manage-data/region-migration.md @@ -55,6 +55,7 @@ ADMIN migrate_region(4398046511104, 1, 2, 60); The parameters of `migrate_region`: ```sql +ADMIN migrate_region(region_id, from_peer_id, to_peer_id); ADMIN migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); ``` @@ -63,7 +64,7 @@ ADMIN migrate_region(region_id, from_peer_id, to_peer_id, replay_timeout); | `region_id` | The region id. | **Required** | | | `from_peer_id` | The peer id of the migration source(Datanode). | **Required** | | | `to_peer_id` | The peer id of the migration destination(Datanode). | **Required** | | -| `replay_timeout` | The timeout(secs) of replay data. If the new Region fails to replay the data within the specified timeout, the migration will fail, however the data in the old Region will not be lost. | Optional | | +| `replay_timeout` | The timeout (in seconds) for replaying data. Defaults to 300 seconds if omitted. If the new Region fails to replay the data within the specified timeout, the migration will fail, however the data in the old Region will not be lost. | Optional | | ## Query the migration state @@ -80,4 +81,3 @@ If it's done, outputs the state in JSON: ``` Of course, you can confirm the region distribution by querying from `region_peers` and `partitions` in `information_schema`. -