【TiDB Usage Environment】Production\Test Environment\POC
Production Environment
【TiDB Version】
6.1
【Encountered Problem】
When ticdc synchronizes large transactions, it requires a large amount of memory. If the pre-allocated memory is insufficient, it will cause OOM and continuous restarts, leading to synchronization failure.
As shown in the transaction below, the maximum memory required is 91G. If the reserved memory is insufficient, it will continuously OOM, causing synchronization to fail.
CDC has recently optimized support for large transactions. Currently, the OOM issue can only be resolved in version v6.2. If it’s a test environment, it is recommended to update to v6.2 CDC and try it out. You just need to set transaction-atomicity=none in the sink URI.
Additionally, the related optimizations will also be released in the upcoming v6.1.1.