Skip to content

Commit

Permalink
[greyhound] parallel consumer - update gaps limit (#35902)
Browse files Browse the repository at this point in the history
[greyhound] parallel consumer - update gaps limit #automerge

GitOrigin-RevId: bebbfb8b314cb96c4f7ce09d79686f2163bc7a6d
  • Loading branch information
ben-wattelman authored and wix-oss committed Sep 8, 2023
1 parent 6816186 commit 4fd5e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ object Dispatcher {
maxParallelism: Int = 1,
updateBatch: Chunk[Record] => URIO[GreyhoundMetrics, Unit] = _ => ZIO.unit,
currentGaps: Set[TopicPartition] => ZIO[GreyhoundMetrics, Nothing, Map[TopicPartition, OffsetAndGaps]] = _ => ZIO.succeed(Map.empty),
gapsSizeLimit: Int = 256,
gapsSizeLimit: Int = 500,
init: Promise[Nothing, Unit]
)(implicit trace: Trace): UIO[Dispatcher[R]] =
for {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ object EventLoopConfig {
startPaused = false,
consumePartitionInParallel = false,
maxParallelism = 1,
gapsSizeLimit = 256 // todo: calculate actual gaps limit based on the max metadata size
gapsSizeLimit = 500
)
}

Expand Down

0 comments on commit 4fd5e46

Please sign in to comment.