How many types of replica creation synchronization are there in TiFlash?

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

Original topic: tiflash的副本创建同步有几种

| username: TiDBer_edM0oxnj

Can any expert help introduce the methods for creating TiFlash replicas and data synchronization?

| username: TiDBer_fiJaQjDR | Original post link

When you need to adjust the number of TiFlash replicas, you can execute the alter table set tiflash replica statement in TiDB. This statement is executed as a DDL statement. After executing this statement, TiDB will convert it into a series of DDL operations and then send these DDL operations to the TiFlash instance. The TiFlash instance will periodically start a subprocess to handle operations related to adding or deleting TiFlash replicas.

| username: TiDBer_edM0oxnj | Original post link

Thank you, master. So, when importing data into TiKV, can we set up the TiFlash replica synchronization in advance? Or do we have to import the data into TiKV first and then execute the statement set in tiflash-replica 1 to set up the replica?

| username: wangkk2024 | Original post link

Here to learn a bit.

| username: shigp_TIDBER | Original post link

Thank you for sharing. Let’s learn and progress together.

| username: TiDBer_QYr0vohO | Original post link

Mark, learned.

| username: TiDBer_aKu9dgpb | Original post link

TiKV and TiFlash are asynchronous. They do not affect each other.

| username: zhaokede | Original post link

Data is replicated asynchronously.

| username: shigp_TIDBDBER | Original post link

Here to learn.

| username: TiDBer_JUi6UvZm | Original post link

Mark, noted.

| username: TiDBer_vJGTQABF | Original post link

The data is replicated asynchronously, so the order of importing and adding replicas doesn’t matter.

| username: system | Original post link

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