Skip to content

eventservice: EventBroker can OOM when syncing large transactions #5596

Description

@asddongmen
Image
                  Image 1. CDC replicate 100 x 1GB insert transaction. 

When TiCDC syncs a very large upstream transaction, CDC can run out of memory.

The current EventBroker scan path may scan a whole transaction from eventstore and keep the scanned DML events in memory before sending them downstream. For very large transactions, this can build a large in-memory batch and cause OOM.

This is addressed by #5511.

Metadata

Metadata

Assignees

Labels

type/enhancementThe issue or PR belongs to an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions