Are there detailed deployment steps for installing the TiDB cluster component CDC?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb集群安装组件cdc,有详情部署步骤吗

| username: linnana

[TiDB Usage Environment] Test/PoC
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]
Three servers have already deployed a TiDB cluster, and I want to add one to deploy the CDC component. Are there detailed deployment steps?

| username: linnana | Original post link

When the TiDB cluster was originally deployed, the CDC component was not installed.

| username: haydenxia | Original post link

Directly prepare a tray file and expand the deployment: 1. ```
tiup cluster scale-out scale-out.yml

Reference: https://docs.pingcap.com/zh/tidb/v6.5/deploy-ticdc
| username: Billmay表妹 | Original post link

Yes, TiCDC is a component of TiDB used to capture real-time changes in the TiDB cluster and transmit them to other systems. Here are the detailed steps to deploy TiCDC in a TiDB cluster:

  1. Configure SSH Mutual Trust and Passwordless Sudo Permissions

Configure SSH mutual trust and passwordless sudo permissions between the TiUP control machine and the TiCDC host. For specific operations, please refer to the SSH Mutual Trust and Sudo Configuration in the TiUP official documentation.

  1. Install TiCDC

Use the TiUP tool to install TiCDC. The specific operations are as follows:

# Install TiCDC
tiup cluster scale-out <cluster-name> \
    --cdc <cdc-version> \
    --node <cdc-host> \
    --ssh <ssh-user>@<ssh-host>:<ssh-port>:/path/to/ssh/key \
    --data-dir /path/to/cdc/data

Where <cluster-name> is the name of the TiDB cluster, <cdc-version> is the version number of TiCDC, <cdc-host> is the address of the TiCDC host, <ssh-user> is the SSH username, <ssh-host> is the SSH host address, <ssh-port> is the SSH port number, /path/to/ssh/key is the path to the SSH private key file, and /path/to/cdc/data is the path to the TiCDC data directory.

  1. Configure TiCDC

Create a TiCDC configuration file cdc.yml on the TiCDC host and configure the relevant parameters of TiCDC. For specific operations, please refer to the Configure TiCDC in the TiCDC official documentation.

  1. Start TiCDC

Start TiCDC on the TiCDC host. The specific operations are as follows:

# Start TiCDC
tiup ctl:v1.5.0 cdc -- --pd-endpoints=<pd-endpoints> --log-file=/path/to/cdc.log --config=/path/to/cdc.yml

Where <pd-endpoints> is the PD address of the TiDB cluster, /path/to/cdc.log is the path to the TiCDC log file, and /path/to/cdc.yml is the path to the TiCDC configuration file.

  1. Verify TiCDC

Use the MySQL client to connect to the TiCDC Server on the TiCDC host and execute the following command to verify whether TiCDC is working properly:

mysql> SHOW PROCESSLIST;

If TiCDC is working properly, it will display the status information of the TiCDC Server.

These are the detailed steps to deploy TiCDC in a TiDB cluster. If you need a more detailed operation guide, please refer to the TiUP and TiCDC official documentation.

| username: linnana | Original post link

Try the environment.

| username: zhanggame1 | Original post link

Learn a bit, planning to install it and give it a try in the next few days.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.