Skip to content

Commit

Permalink
ticdc: add faq about disk and br/lightning (pingcap#9845)
Browse files Browse the repository at this point in the history
  • Loading branch information
overvenus authored Jun 16, 2022
1 parent 7645b33 commit 8cd0153
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ticdc/troubleshoot-ticdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,12 @@ Sink 为 TiDB 或 MySQL 时,下游数据库的用户需要以下权限:
- `Alter`
- `Create View`

如果要同步 `recover table` 到下游 TiDB,需要有 `Super` 权限。
如果要同步 `recover table` 到下游 TiDB,需要有 `Super` 权限。

## 为什么 TiCDC 需要使用磁盘,什么时候会写磁盘,TiCDC 能否利用内存缓存提升同步性能?

TiCDC 需要磁盘是为了缓冲上游写入高峰时下游消费不及时堆积的数据。TiCDC 正常运行期间都需要写入磁盘,但这通常不是同步吞吐和同步延时的瓶颈,写磁盘对延时影响在百毫秒内。TiCDC 也利用了内存来提升加速读取磁盘中的数据,以提升同步性能。

# 为什么在使用了 TiDB Lightning 和 BR 恢复了数据之后,TiCDC 同步会出现卡顿甚至卡住?

目前 TiCDC 还没完全适配 TiDB Lightning 和 BR,请避免在使用 TiCDC 同步的表上使用 TiDB Lightning 和 BR。

0 comments on commit 8cd0153

Please sign in to comment.