开发者社区 > 大数据与机器学习 > 实时计算 Flink > 正文

请问postgresql cdc 怎么设置单独的增量模式呀,debezium.snapshot.mo

请问postgresql cdc 怎么设置单独的增量模式呀,debezium.snapshot.model=never 不生效

展开
收起
游客3oewgrzrf6o5c 2022-06-28 15:38:04 801 0
1 条回答
写回答
取消 提交回答
  • 同问,这几个配置都不生效

    Specifies the criteria for performing a snapshot when the connector starts:

    initial - The connector performs a snapshot only when no offsets have been recorded for the logical server name.

    always - The connector performs a snapshot each time the connector starts.

    never - The connector never performs snapshots. When a connector is configured this way, its behavior when it starts is as follows. If there is a previously stored LSN in the Kafka offsets topic, the connector continues streaming changes from that position. If no LSN has been stored, the connector starts streaming changes from the point in time when the PostgreSQL logical replication slot was created on the server. The never snapshot mode is useful only when you know all data of interest is still reflected in the WAL.

    initial_only - The connector performs an initial snapshot and then stops, without processing any subsequent changes.

    exported - The connector performs a snapshot based on the point in time when the replication slot was created. This is an excellent way to perform the snapshot in a lock-free way.

    custom - The connector performs a snapshot according to the setting for the snapshot.custom.class property, which is a custom implementation of the io.debezium.connector.postgresql.spi.Snapshotter interface.

    2022-07-05 18:21:38
    赞同 展开评论 打赏

实时计算Flink版是阿里云提供的全托管Serverless Flink云服务,基于 Apache Flink 构建的企业级、高性能实时大数据处理系统。提供全托管版 Flink 集群和引擎,提高作业开发运维效率。

相关电子书

更多
金融级 PostgreSQL监控及优化 立即下载
PostgreSQL在哈啰的实践-周飞 立即下载
PostgreSQL高并发数据库应用数据 立即下载

相关镜像