Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a config option for kafka producer flush frequency #412

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

alibresco
Copy link
Contributor

Sarama exposes a config option for the best effort frequency of flushes.

This option tells the library to hold kafka messages for up to this amount of time with the goal of better client-side compression and batching. This can lead to peformance improvements in both gnmic and on the kafka broker.

By default, sarama sets this value to 0 which indicates that it should flush as frequently as possible. This PR preserves that behavior while adding a knob to increase the frequency.

@karimra karimra merged commit 872b598 into openconfig:main Apr 22, 2024
2 checks passed
@karimra
Copy link
Collaborator

karimra commented Apr 22, 2024

Thanks for the contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants