[Feature Request]: Make PubsubUnboundedSource SCALE_OUT and MAX_IN_FLIGHT configurable

Abierto
#41,940 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
Java
Estrellas
8.7k
Forks
4.8k
Merge medio
3 d 20 h
PR fusionados (30 d)
446

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/beam

Todos los issues de apache/beam

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.