Repository navigation
Make in-memory buffer and batch size configurable for kafka buffer - #7194
graytaylor0 merged 1 commit into
Conversation
PR Reviewer Guide 🔍(Review updated until commit 25168e4)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 25168e4 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit b26e400
Suggestions up to commit 4e30a62
|
4e30a62 to
b26e400
Compare
|
Persistent review updated to latest commit b26e400 |
| class KafkaBufferConfig implements KafkaProducerConfig, KafkaConsumerConfig { | ||
| private static final Duration DEFAULT_DRAIN_TIMEOUT = Duration.ofSeconds(30); | ||
| static final Duration DEFAULT_ACKNOWLEDGEMENTS_TIMEOUT = Duration.ofHours(Integer.MAX_VALUE); | ||
| static final int DEFAULT_BOUNDED_BUFFER_SIZE = 400000; |
There was a problem hiding this comment.
We should keep the same defaults so that an in-place version update doesn't have a performance impact.
…ower default values Signed-off-by: Taylor Gray <tylgry@amazon.com>
b26e400 to
25168e4
Compare
|
Persistent review updated to latest commit 25168e4 |
Description
The Kafka buffer has kafka consumers that poll from kafka and write to an in memory bounded buffer. Before this change, the buffer and batch size (the amount of records that are pulled from this buffer by the processor workers at one time) were not configurable and set to 1,000,000 buffer size and 250,000 batch size.
This change make it so that these values can be configured based on the user's record size or compute that is being run on.
Issues Resolved
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.