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

kafka/topic: add segmentHours and maxMessageBytes to configurations #91

Merged
merged 2 commits into from
Oct 18, 2022

Conversation

tronghn
Copy link
Contributor

@tronghn tronghn commented Oct 18, 2022

See https://github.com/nais/features/issues/7.

Maximum and minimum values are somewhat arbitrarily chosen, though:

  • segmentHours (instead of segmentMs) should never be so small so that it can spawn a gazillion segments and take down the brokers due to a large amount of open files and memory usage, so we've set a value of 1 hour as a reasonble minimum.
  • maxMessageBytes should ideally never be increased beyond the defaults, though some users deem it necessary in certain cases. We've set the maximum value to 5 mebibytes for now, though we should strongly recommend using other techonologies or patterns (e.g. claim-check) if our users keep asking to increase this value in the future.

@tronghn tronghn requested a review from a team as a code owner October 18, 2022 11:35
@tronghn tronghn enabled auto-merge (squash) October 18, 2022 11:55
@tronghn tronghn merged commit 9a0669d into main Oct 18, 2022
@tronghn tronghn deleted the kafka-topic-config-galore branch October 18, 2022 11:56
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