BladePipe 1.10.0: Support Google Ads and more, improve SAP HANA source CDC performance.
跳到主要内容

AutoMQ 到 MongoDB

选择对端数据库:

数据链路

基本功能

功能说明
Incremental Data Sync

Allow subscribing to messages from the source Topic and transforming them into DML operations, namely, INSERT, UPDATE, DELETE.

Subscription Modification

Add, delete, or modify the subscribed topics. For more information, see Modify Subscription.

Position Resetting

Reset positions by timestamp to consume the data in a past period again.

高级功能

功能说明
消息格式

支持以下消息格式,文档:消息格式说明

  • CloudCanal内置格式
  • AlibabaCanal兼容格式
Pre-Creation of Collection in the Target

Automatic collection creation is not supported when moving data from Kafka/AutoMQ to MongoDB.

限制和注意点

限制项说明
目标端需要提前创建表

仅支持消息自动创建 Topic

原始消息格式

仅支持 AutoMQ 到 AutoMQ,且两端的消息格式都需要选择 原始消息格式

使用示例

标题详情
CloudCanal x AutoMQ 数据迁移同步

文档:CloudCanal x AutoMQ 数据迁移同步

跨互联网数据互通 (AutoMQ)

文档:跨互联网数据互通 (AutoMQ)

AutoMQ 数据中转校验

文档:AutoMQ 数据中转校验


源端数据源

前置条件

条件说明
网络准备

迁移同步节点(sidecar)可连接 AutoMQ 各节点

任务参数

参数名称说明
schemaFormat

MQ 消息格式,文档:消息格式说明

consumerGroupId

AutoMQ 消费组 Id

consumeParallel

消费 AutoMQ 的并行度

sessonTimeoutMs

AutoMQ Session 超时时间(毫秒)

maxPollRecords

AutoMQ 一次最大拉取消息数量

Tips: 通用参数配置请参考 通用参数及功能


目标端数据源

前置条件

条件说明
账号权限

文档:MongoDB 需要的权限

网络准备

迁移同步节点(sidecar)可连接 MongoDB/DocumentDB 节点

双向同步准备

文档:MongoDB 双向同步准备

任务参数

参数名称说明
totalDataInMemMb

攒批写入,内存中最大数据容量,超过此容量或超过 asyncFlushIntervalSec 则刷出数据到写入队列

asyncFlushIntervalSec

攒批写入,等待刷出的间隔时间,超过此时间或超过 totalDataInMemMb 则刷出数据到写入队列

flushBatchMb

单表最大攒批容量,超过此容量则刷出数据到写入队列

realFlushPauseSec

刷出数据到 MongoDB 的等待时间,0 则不等待

enableTimeZoneProcess

是否对时间字段进行时区转换

timezone

需要转换的目标时区(默认 UTC)

enableBatchApply

启用批量写入模式 (默认关闭)

deCycle

是否开启双向同步防循环,默认关闭

deCycleCollection

存储防循环事务 marker 的 collection,默认 cloudcanal.__cc_tx_de_cycle

deCycleMarkerTtlDays

双向同步 marker 的保留天数,默认 7 天。应大于任务允许的最大停机、积压和位点回溯时间

Tips: 通用参数配置请参考 通用参数及功能