Skip to content
/ ticdc Public

TiCDC pulls change logs out of TiDB and pushes to kinds of systems.

Notifications You must be signed in to change notification settings

pingcap/ticdc

Repository files navigation

TiCDC

TiCDC pulls change logs from TiDB clusters and pushes them to downstream systems, such as MySQL, TiDB, Kafka, Pulsar, and Object Storages (e.g., S3). Beginning from v8.6, we use this repository to build TiCDC instead of the old repository tiflow. The new TiCDC in this repository has undergone a complete architectural redesign while retaining the same user interface. The architectural upgrade primarily aims to address certain drawbacks of TiCDC and propel it forward.

  • Better scalability. E.g. support over 1 million tables.
  • More efficiency. Use less machine resource to support large volume.
  • Better maintainability. E.g. simpler and human readable code, clear code module, and open to extensions.
  • Cloud native architecture. We want to design a new architecture from the ground to support the cloud.

Quick Start

Prerequests

TiCDC can be built on the following operating systems:

  • Linux
  • MacOS
  1. Install GoLang 1.23.2
# Linux
wget https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz

# MacOS
curl -O https://go.dev/dl/go1.23.2.darwin-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.23.2.darwin-amd64.tar.gz


export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

Download the latest release's source code and compile

  1. Go to ticdc/tags to find the latest tag, for example latest-version

  2. Download the repo and checkout the latest tag

git clone [email protected]:pingcap/ticdc.git
cd ticdc
git fetch origin
git checkout latest-version
  1. Build TiCDC
make cdc
  1. Packing the binary and patch to the existing TiDB cluster(Optional)
cd bin
tar -czf ticdc.tar.gz cdc
tiup cluster patch <cluster-name> -R cdc cdc.tar.gz -y

About

TiCDC pulls change logs out of TiDB and pushes to kinds of systems.

Resources

Stars

Watchers

Forks

Packages

No packages published