Skip to content

cdc goroutines become crazy when initializing a capture with lots of regions and tikv.cdc.min-ts-interval = 200ms #5610

Closed
@hicqu

Description

What did you do?

Create a capture on 16 MySQL tables, 131K regions totally with

  • tikv.cdc.min-ts-interval = 200ms
  • tikv.cdc.min-ts-interval = 1s

What did you expect to see?

Both 2 operations can be finished quickly. With tikv.cdc.min-ts-interval = 1s it's expected:
图片

What did you see instead?

However with tikv.cdc.min-ts-interval = 200ms the capture creating can never finished, and cpu usage is very high:
图片
图片

And here is a 30s CPU profile:
图片

We can see the CPU time is about 480s, which means all 16C are very busy on runtime.selectgo.

Versions of the cluster

All components are nightly.
Go version is 1.18.1.

Investigations

Metadata

Assignees

Labels

affects-5.4This bug affects the 5.4.x(LTS) versions.affects-6.1This bug affects the 6.1.x(LTS) versions.area/ticdcIssues or PRs related to TiCDC.severity/moderatetype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions