[Feature Request]: Make PubsubUnboundedSource SCALE_OUT and MAX_IN_FLIGHT configurable

未关闭
#41,940 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

这个 Issue 还没有评估数据。

描述

PubsubUnboundedSource hardcodes two read settings:

  • SCALE_OUT = 4: the number of readers created for each split the runner asks for, to hide the latency of blocking pulls.
  • MAX_IN_FLIGHT = 20000: the most received but unacked messages one reader holds. Messages are acked when the checkpoint covering them is finalized.

The right values depend on the client and the checkpoint interval, and they can't be changed today. For example, a custom PubsubClientFactory that doesn't block on pull gains nothing from extra readers, and the in-flight cap should follow the checkpoint interval and message rate.

Proposal: add two PubsubOptions settings, pubsubReadScaleOut and pubsubReadMaxInFlight, with the current values as defaults so nothing changes unless they are set. They affect runners that run the Beam source, such as Flink, Spark and Direct; Dataflow replaces the source with its own Pub/Sub read.

主要语言
Java
星标
8.7k
派生
4.8k
平均合并
3 天 20 小时
30 天内合并 PR
446

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/beam 的其他 Issue

查看 apache/beam 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。