Changefeed
TiDB Cloud changefeed helps you stream data from TiDB Cloud to other data services. Currently, TiDB Cloud supports streaming data to Apache Kafka, MySQL, TiDB Cloud and cloud storage.
To access the changefeed feature, navigate to the cluster overview page of your TiDB cluster, and then click Changefeed in the left navigation pane. The changefeed page is displayed.
On the changefeed page, you can create a changefeed, view a list of existing changefeeds, and operate the existing changefeeds (such as scaling, pausing, resuming, editing, and deleting a changefeed).
Create a changefeed
To create a changefeed, refer to the tutorials:
Query Changefeed RCUs
- Navigate to the cluster overview page of the target TiDB cluster, and then click Changefeed in the left navigation pane.
- Locate the corresponding changefeed you want to query, and click ... > View in the Action column.
- You can see the current TiCDC Replication Capacity Units (RCUs) in the Specification area of the page.
Scale a changefeed
You can change the TiCDC Replication Capacity Units (RCUs) of a changefeed by scaling up or down the changfeed.
- Navigate to the cluster overview page of the target TiDB cluster, and then click Changefeed in the left navigation pane.
- Locate the corresponding changefeed you want to scale, and click ... > Scale Up/Down in the Action column.
- Select a new specification.
- Click Submit.
It takes about 10 minutes to complete the scaling process (during which the changfeed works normally) and a few seconds to switch to the new specification (during which the changefeed will be paused and resumed automatically).
Pause or resume a changefeed
- Navigate to the cluster overview page of the target TiDB cluster, and then click Changefeed in the left navigation pane.
- Locate the corresponding changefeed you want to pause or resume, and click ... > Pause/Resume in the Action column.
Edit a changefeed
Navigate to the cluster overview page of the target TiDB cluster, and then click Changefeed in the left navigation pane.
Locate the changefeed you want to pause, and click ... > Pause in the Action column.
When the changefeed status changes to
Paused
, click ... > Edit to edit the corresponding changefeed.TiDB Cloud populates the changefeed configuration by default. You can modify the following configurations:
- MySQL sink: MySQL Connection and Table Filter.
- Kafka sink: all configurations.
After editing the configuration, click ... > Resume to resume the corresponding changefeed.
Delete a changefeed
- Navigate to the cluster overview page of the target TiDB cluster, and then click Changefeed in the left navigation pane.
- Locate the corresponding changefeed you want to delete, and click ... > Delete in the Action column.
Changefeed billing
To learn the billing for changefeeds in TiDB Cloud, see Changefeed billing.
Changefeed states
The state of a replication task represents the running state of the replication task. During the running process, replication tasks might fail with errors, be manually paused, resumed, or reach the specified TargetTs
. These behaviors can lead to changes of the replication task state.
The states are described as follows:
CREATING
: the replication task is being created.RUNNING
: the replication task runs normally and the checkpoint-ts proceeds normally.EDITING
: the replication task is being edited.PAUSING
: the replication task is being paused.PAUSED
: the replication task is paused.RESUMING
: the replication task is being resumed.DELETING
: the replication task is being deleted.DELETED
: the replication task is deleted.WARNING
: the replication task returns a warning. The replication cannot continue due to some recoverable errors. The changefeed in this state keeps trying to resume until the state transfers toRUNNING
. The changefeed in this state blocks GC operations.FAILED
: the replication task fails. Due to some unrecoverable errors, the replication task cannot resume and cannot be recovered. The changefeed in this state does not block GC operations.