[Feature Request]: Make PubsubUnboundedSource SCALE_OUT and MAX_IN_FLIGHT configurable

オープン
#41,940 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

この 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時間
マージ済み PR(30日)
446

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/beam のほかの issue

apache/beam の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。