跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[问与答] Debezium connector 订阅 MongoDB change stream 做流处理的延迟问题

发表于

使用 debezium 配置的 mongoDB connector ,监控一个集合的 change stream ,但是总有一少部分的数据从变更发生时间debezium 开始处理(通过 debezium 的payloadts_ms判断)有相当长的延迟,最大到了 40s 。 debezium 为 docker 部署。mongoDB 为分片集群,connector 配置的是 mongos 的地址。订阅的集合约每秒发生 1000 调变更,但也有数十秒没有新数据的情况。 看起来似乎可能是两个原因:

  • 1.mongo 的 change stream 生成就慢
  • 2.debezium 处理跟不上速度,但通过调整 max.batch.size/max.queue.size/pool.interval 后依然有这个问题

目前看起来,即使期间数据量很小,也会发生这种情况。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.