Skip to content

Commit

Permalink
Merge branch 'main' into br_support_more_args
Browse files Browse the repository at this point in the history
  • Loading branch information
haojinming authored Sep 13, 2022
2 parents bed055d + 088ea7b commit 99f9f02
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
18 changes: 17 additions & 1 deletion cdc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,23 @@ $ make cdc
## Deployment

### Deploy by TiUP
_(Will be supported soon)_

_Note: TiUP >= `v1.11.0` is required. This version will be released before the end of Sep, 2022_

#### Deploy a new TiDB/TiKV cluster including TiKV-CDC

When you deploy a new TiDB/TiKV cluster using TiUP, you can also deploy TiKV-CDC at the same time. You only need to add the `kvcdc_servers` section in the initialization configuration file that TiUP uses to start the TiDB/TiKV cluster. Please refer to the configuration [template](https://github.com/tikv/migration/blob/main/cdc/deployments/tikv-cdc/config-templates/topology.example.yaml).

#### Add TiKV-CDC to an existing TiDB/TiKV cluster

You can also use TiUP to add the TiKV-CDC component to an existing TiDB/TiKV cluster. Take the following procedures:

1. Make sure that the current TiDB/TiKV version >= `6.2.0`.
2. Prepare a scale-out configuration file, refer to [template](https://github.com/tikv/migration/blob/main/cdc/deployments/tikv-cdc/config-templates/scale-out.example.yaml).
3. Scale out by `tiup cluster scale-out`. Also Refer to [Scale a TiDB Cluster Using TiUP](https://docs.pingcap.com/tidb/stable/scale-tidb-using-tiup).
```
tiup cluster scale-out <cluster-name> scale-out.yaml
```

### Deploy manually

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tikv-cdc_servers:
kvcdc_servers:
- host: 10.0.1.20
# # SSH port of the server.
# ssh_port: 22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ server_configs:
storage.api-version: 2
storage.enable-ttl: true
# pd:
# tikv-cdc:
# kvcdc:
# gc-ttl: 86400 # The TTL (Time To Live) of the service level `GC safepoint` in PD set by TiKV-CDC

# # Server configs are used to specify the configuration of PD Servers.
Expand All @@ -61,7 +61,7 @@ tikv_servers:
- host: 10.0.1.17

# # Server configs are used to specify the configuration of TiKV-CDC Servers.
tikv-cdc_servers:
kvcdc_servers:
- host: 10.0.1.20
# # SSH port of the server.
# ssh_port: 22
Expand Down
10 changes: 6 additions & 4 deletions cdc/manual-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

## 部署

### 使用 TiUP 部署包含 TiKV-CDC 组件的全新 TiKV 集群
_(注意:支持 TiKV-CDC 的 TiUP 版本未正式发布)_
### 使用 TiUP 部署

_(注意:支持 TiKV-CDC 的最小 TiUP 版本为 `v1.11.0`。该版本预计于2022年9月底发布)_

#### 使用 TiUP 部署包含 TiKV-CDC 组件的全新 TiKV 集群

在使用 [TiUP](https://docs.pingcap.com/zh/tidb/stable/production-deployment-using-tiup) 部署全新 TiKV 集群时,支持同时部署 TiKV-CDC 组件。只需在 TiUP 启动 TiKV 集群时的配置文件中加入 TiKV-CDC 部分即可,配置文件参考[模板](https://github.com/tikv/migration/blob/main/cdc/deployments/tikv-cdc/config-templates/topology.example.yaml)

### 使用 TiUP 在原有 TiKV 集群上新增 TiKV-CDC 组件
_(注意:支持 TiKV-CDC 的 TiUP 版本未正式发布)_
#### 使用 TiUP 在原有 TiKV 集群上新增 TiKV-CDC 组件

目前也支持在原有 TiKV 集群上使用 TiUP 新增 TiKV-CDC 组件,操作步骤如下:

Expand Down

0 comments on commit 99f9f02

Please sign in to comment.