nadberezny opened a new issue, #41940:
URL: https://github.com/apache/beam/issues/41940

   `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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to