Skip to content

Commit 4604821

Browse files
authored
en,zh: update DM links from archived tidb-data-migration docs to tidb/stable (#3104) (#3106)
1 parent 6fd4098 commit 4604821

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

en/deploy-tidb-dm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ summary: Learn how to deploy TiDB DM cluster on Kubernetes.
55

66
# Deploy DM on Kubernetes
77

8-
[TiDB Data Migration](https://docs.pingcap.com/tidb-data-migration/v2.0) (DM) is an integrated data migration task management platform that supports the full data migration and the incremental data replication from MySQL/MariaDB into TiDB. This document describes how to deploy DM on Kubernetes using TiDB Operator and how to migrate MySQL data to TiDB cluster using DM.
8+
[TiDB Data Migration](https://docs.pingcap.com/tidb/stable/dm-overview/) (DM) is an integrated data migration task management platform that supports the full data migration and the incremental data replication from MySQL/MariaDB into TiDB. This document describes how to deploy DM on Kubernetes using TiDB Operator and how to migrate MySQL data to TiDB cluster using DM.
99

1010
## Prerequisites
1111

@@ -41,7 +41,7 @@ TiDB Operator only supports deploying DM 2.0 and later versions.
4141

4242
DM-master is an indispensable component of the DM cluster. You need to deploy at least three DM-master Pods if you want to achieve high availability.
4343

44-
You can configure DM-master parameters by `spec.master.config` in `DMCluster` CR. For complete DM-master configuration parameters, refer to [DM-master Configuration File](https://docs.pingcap.com/tidb-data-migration/v2.0/dm-master-configuration-file).
44+
You can configure DM-master parameters by `spec.master.config` in `DMCluster` CR. For complete DM-master configuration parameters, refer to [DM-master Configuration File](https://docs.pingcap.com/tidb/stable/dm-master-configuration-file).
4545

4646
```yaml
4747
apiVersion: pingcap.com/v1alpha1
@@ -72,7 +72,7 @@ spec:
7272
7373
#### Configure DM-worker
7474
75-
You can configure DM-worker parameters by `spec.worker.config` in `DMCluster` CR. For complete DM-worker configuration parameters,refer to [DM-worker Configuration File](https://docs.pingcap.com/tidb-data-migration/v2.0/dm-worker-configuration-file).
75+
You can configure DM-worker parameters by `spec.worker.config` in `DMCluster` CR. For complete DM-worker configuration parameters,refer to [DM-worker Configuration File](https://docs.pingcap.com/tidb/stable/dm-worker-configuration-file).
7676

7777
```yaml
7878
apiVersion: pingcap.com/v1alpha1

en/use-tidb-dm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ summary: Learn how to migrate MySQL data to TiDB cluster using DM on Kubernetes.
55

66
# Use DM on Kubernetes
77

8-
[TiDB Data Migration](https://docs.pingcap.com/tidb-data-migration/v2.0) (DM) is an integrated data migration task management platform that supports the full data migration and the incremental data replication from MySQL/MariaDB into TiDB. This document describes how to migrate MySQL data to TiDB cluster using DM on Kubernetes.
8+
[TiDB Data Migration](https://docs.pingcap.com/tidb/stable/dm-overview/) (DM) is an integrated data migration task management platform that supports the full data migration and the incremental data replication from MySQL/MariaDB into TiDB. This document describes how to migrate MySQL data to TiDB cluster using DM on Kubernetes.
99

1010
## Prerequisites
1111

@@ -40,7 +40,7 @@ kubectl exec -ti ${dm_cluster_name}-dm-master-0 -n ${namespace} -- /bin/sh
4040

4141
### Create data source
4242

43-
1. Write MySQL-1 related information to `source1.yaml` file, which can refer to [Create data source](https://docs.pingcap.com/tidb-data-migration/v2.0/migrate-data-using-dm#step-3-create-data-source).
43+
1. Write MySQL-1 related information to `source1.yaml` file, which can refer to [Create data source](https://docs.pingcap.com/tidb/stable/migrate-data-using-dm#step-3-create-data-source).
4444

4545
2. Configure the `from.host` in the `source1.yaml` file as the MySQL host address that the Kubernetes cluster can access internally.
4646

@@ -58,7 +58,7 @@ kubectl exec -ti ${dm_cluster_name}-dm-master-0 -n ${namespace} -- /bin/sh
5858

5959
### Configure migration tasks
6060

61-
1. Edit task configuration file `task.yaml`, which can refer to [Configure the data migration task](https://docs.pingcap.com/tidb-data-migration/v2.0/migrate-data-using-dm#step-4-configure-the-data-migration-task).
61+
1. Edit task configuration file `task.yaml`, which can refer to [Configure the data migration task](https://docs.pingcap.com/tidb/stable/migrate-data-using-dm#step-4-configure-the-data-migration-task).
6262

6363
2. Configure the `target-database.host` in `task.yaml` as the TiDB host address that the Kubernetes cluster can access internally. If the cluster is deployed by TiDB Operator, configure the host as `${tidb_cluster_name}-tidb.${namespace}`.
6464

@@ -70,4 +70,4 @@ kubectl exec -ti ${dm_cluster_name}-dm-master-0 -n ${namespace} -- /bin/sh
7070

7171
### Start/Check/Stop the migration tasks
7272

73-
Refer to the corresponding steps in [Migrate Data Using DM](https://docs.pingcap.com/tidb-data-migration/v2.0/migrate-data-using-dm#step-5-start-the-data-migration-task) and fill in the master-addr as `${dm_cluster_name}-dm-master:8261`.
73+
Refer to the corresponding steps in [Migrate Data Using DM](https://docs.pingcap.com/tidb/stable/migrate-data-using-dm#step-5-start-the-data-migration-task) and fill in the master-addr as `${dm_cluster_name}-dm-master:8261`.

zh/deploy-tidb-dm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ summary: 了解如何在 Kubernetes 上部署 TiDB DM 集群。
55

66
# 在 Kubernetes 上部署 DM
77

8-
[TiDB Data Migration](https://docs.pingcap.com/zh/tidb-data-migration/v2.0) (DM) 是一款支持从 MySQL 或 MariaDB 到 TiDB 的全量数据迁移和增量数据复制的一体化数据迁移任务管理平台。本文介绍如何使用 TiDB Operator 在 Kubernetes 上部署 DM。
8+
[TiDB Data Migration](https://docs.pingcap.com/zh/tidb/stable/dm-overview/) (DM) 是一款支持从 MySQL 或 MariaDB 到 TiDB 的全量数据迁移和增量数据复制的一体化数据迁移任务管理平台。本文介绍如何使用 TiDB Operator 在 Kubernetes 上部署 DM。
99

1010
## 前置条件
1111

@@ -41,7 +41,7 @@ TiDB Operator 仅支持部署 DM 2.0 及更新版本。
4141

4242
DM-master 为 DM 集群必须部署的组件。如果需要高可用部署则至少部署 3 个 DM-master Pod。
4343

44-
可以通过 DMCluster CR 的 `spec.master.config` 来配置 DM-master 配置参数。完整的 DM-master 配置参数,参考[DM-master 配置文件介绍](https://docs.pingcap.com/zh/tidb-data-migration/v2.0/dm-master-configuration-file)
44+
可以通过 DMCluster CR 的 `spec.master.config` 来配置 DM-master 配置参数。完整的 DM-master 配置参数,参考[DM-master 配置文件介绍](https://docs.pingcap.com/zh/tidb/stable/dm-master-configuration-file/)
4545

4646
```yaml
4747
apiVersion: pingcap.com/v1alpha1
@@ -72,7 +72,7 @@ spec:
7272
7373
#### DM-worker 配置
7474
75-
可以通过 DMCluster CR 的 `spec.worker.config` 来配置 DM-worker 配置参数。完整的 DM-worker 配置参数,参考[DM-worker 配置文件介绍](https://docs.pingcap.com/zh/tidb-data-migration/v2.0/dm-worker-configuration-file)。
75+
可以通过 DMCluster CR 的 `spec.worker.config` 来配置 DM-worker 配置参数。完整的 DM-worker 配置参数,参考[DM-worker 配置文件介绍](https://docs.pingcap.com/zh/tidb/stable/dm-worker-configuration-file/)。
7676

7777
```yaml
7878
apiVersion: pingcap.com/v1alpha1

zh/use-tidb-dm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ summary: 了解如何在 Kubernetes 上使用 TiDB DM 迁移数据。
55

66
# 在 Kubernetes 上使用 DM 迁移数据
77

8-
[TiDB Data Migration](https://docs.pingcap.com/zh/tidb-data-migration/v2.0) (DM) 是一款支持从 MySQL 或 MariaDB 到 TiDB 的全量数据迁移和增量数据复制的一体化数据迁移任务管理平台。本文介绍如何使用 DM 迁移数据到 TiDB 集群。
8+
[TiDB Data Migration](https://docs.pingcap.com/zh/tidb/stable/dm-overview/) (DM) 是一款支持从 MySQL 或 MariaDB 到 TiDB 的全量数据迁移和增量数据复制的一体化数据迁移任务管理平台。本文介绍如何使用 DM 迁移数据到 TiDB 集群。
99

1010
## 前置条件
1111

@@ -32,7 +32,7 @@ summary: 了解如何在 Kubernetes 上使用 TiDB DM 迁移数据。
3232

3333
### 创建数据源
3434

35-
1. 参考[创建数据源](https://docs.pingcap.com/zh/tidb-data-migration/v2.0/migrate-data-using-dm#第-3-步创建数据源)将 MySQL 的相关信息写入到 `source1.yaml` 中。
35+
1. 参考[创建数据源](https://docs.pingcap.com/zh/tidb/stable/migrate-data-using-dm#第-3-步创建数据源)将 MySQL 的相关信息写入到 `source1.yaml` 中。
3636

3737
2. 填写 `source1.yaml``from.host` 为 Kubernetes 集群内部可以访问的 MySQL host 地址。
3838

@@ -44,12 +44,12 @@ summary: 了解如何在 Kubernetes 上使用 TiDB DM 迁移数据。
4444

4545
### 配置同步任务
4646

47-
1. 参考[配置同步任务](https://docs.pingcap.com/zh/tidb-data-migration/v2.0/migrate-data-using-dm#第-4-步配置任务)编辑任务配置文件 `task.yaml`
47+
1. 参考[配置同步任务](https://docs.pingcap.com/zh/tidb/stable/migrate-data-using-dm#第-4-步配置任务)编辑任务配置文件 `task.yaml`
4848

4949
2. 填写 `task.yaml` 中的 `target-database.host` 为 Kubernetes 集群内部可以访问的 TiDB host 地址。如果是 TiDB Operator 部署的集群,填写 `${tidb_cluster_name}-tidb.${namespace}` 即可。
5050

5151
3.`task.yaml` 文件中,添加 `loaders.${customized_name}.dir` 字段作为全量数据的导入导出目录,其中的 `${customized_name}` 是可以由你自定义的名称,然后将此字段的值填写为持久卷在 Pod 内挂载目录 `/var/lib/dm-worker` 下的子目录,如 `/var/lib/dm-worker/dumped_data`;并在实例配置中进行引用,如 `mysql-instances[0].loader-config-name: "{customized_name}"`
5252

5353
### 启动/查询/停止同步任务
5454

55-
参考[使用 DM 迁移数据](https://docs.pingcap.com/zh/tidb-data-migration/v2.0/migrate-data-using-dm#第-5-步启动任务) 中的对应步骤即可,注意将 master-addr 填写为 `${dm_cluster_name}-dm-master:8261`
55+
参考[使用 DM 迁移数据](https://docs.pingcap.com/zh/tidb/stable/migrate-data-using-dm#第-5-步启动任务) 中的对应步骤即可,注意将 master-addr 填写为 `${dm_cluster_name}-dm-master:8261`

0 commit comments

Comments
 (0)