Skip to content

Commit

Permalink
Add log cleaner configs (#36)
Browse files Browse the repository at this point in the history
* Add log cleaner configs

* Apply suggestions from code review

Co-authored-by: Laxman Ch <[email protected]>

Co-authored-by: Laxman Ch <[email protected]>
  • Loading branch information
ravisingal and laxmanchekka authored Jan 20, 2023
1 parent e110135 commit 28569c3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
39 changes: 39 additions & 0 deletions helm/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,49 @@ data:
log.cleaner.threads={{ int .Values.config.logCleanerThreads }}
{{- end }}
{{- if .Values.config.logCleanerMinCleanableRatio }}
# The minimum ratio of dirty log to total log for a log to eligible for cleaning.
log.cleaner.min.cleanable.ratio={{ .Values.config.logCleanerMinCleanableRatio }}
{{- end }}
{{- if .Values.config.logCleanerDeleteRetentionMs }}
# The amount of time to retain delete tombstone markers for log compacted topics.
log.cleaner.delete.retention.ms={{ int .Values.config.logCleanerDeleteRetentionMs }}
{{- end }}
{{- if .Values.config.logCleanerMinCompactionLagMs }}
# The minimum time a message will remain uncompacted in the log. Only applicable for logs that are being compacted.
log.cleaner.min.compaction.lag.ms = {{ int .Values.config.logCleanerMinCompactionLagMs }}
{{- end }}
{{- if .Values.config.logCleanerMaxCompactionLagMs }}
# The maximum time a message will remain ineligible for compaction in the log. Only applicable for logs that are being compacted.
log.cleaner.max.compaction.lag.ms = {{ int .Values.config.logCleanerMaxCompactionLagMs }}
{{- end }}
{{- if .Values.config.logCleanerIoMaxBytesPerSecond }}
# The log cleaner will be throttled so that the sum of its read and write i/o will be less than this value on average
log.cleaner.io.max.bytes.per.second = {{ int .Values.config.logCleanerIoMaxBytesPerSecond }}
{{- end }}
{{- if .Values.config.logCleanerDedupeBufferSize }}
# The total memory used for log deduplication across all cleaner threads
log.cleaner.dedupe.buffer.size = {{ .Values.config.logCleanerDedupeBufferSize }}
{{- end }}
{{- if .Values.config.logCleanerIoBufferSize }}
# The total memory used for log cleaner I/O buffers across all cleaner threads
log.cleaner.io.buffer.size = {{ .Values.config.logCleanerIoBufferSize }}
{{- end }}
{{- if .Values.config.logCleanerIoBufferLoadFactor }}
log.cleaner.io.buffer.load.factor = {{ .Values.config.logCleanerIoBufferLoadFactor }}
{{- end }}
{{- if .Values.config.logCleanerBackoffMs }}
# The amount of time to sleep when there are no logs to clean
log.cleaner.backoff.ms = {{ int .Values.config.logCleanerBackoffMs }}
{{- end }}
log4j.properties: |+
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Expand Down
10 changes: 9 additions & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,16 @@ config:
groupInitialRebalanceDelayMs: 3000
interBrokerListenerName: PLAINTEXT
interBrokerProtocolVersion: "3.2"
logCleanerDeleteRetentionMs: ""
logCleanerDeleteRetentionMs: "10800000"
logCleanerThreads: ""
logCleanerBackoffMs: ""
logCleanerDedupeBufferSize: ""
logCleanerIoBufferLoadFactor: ""
logCleanerIoBufferSize: ""
logCleanerIoMaxBytesPerSecond: ""
logCleanerMaxCompactionLagMs: ""
logCleanerMinCleanableRatio: "0.25"
logCleanerMinCompactionLagMs: ""
logDirs: /var/lib/kafka/data/topics
logFlushIntervalMessages: ""
logFlushIntervalMs: ""
Expand Down

0 comments on commit 28569c3

Please sign in to comment.