Skip to content

Commit

Permalink
add snappy as default compression type (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
guysegal authored Oct 11, 2023
1 parent bc79dcc commit 2300278
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion charts/dafka-producer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: A Helm Chart for Dafka Producer
name: dafka-producer
version: 7.2.8
version: 7.3.0
20 changes: 4 additions & 16 deletions charts/dafka-producer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,10 @@ spec:
- name: BATCH_SIZE
value: {{ .Values.batchSize }}
{{- end }}
{{- if .Values.blockedThreadDetectionEnabled }}
- name: BLOCKED_THREAD_DETECTION_ENABLED
value: {{ .Values.blockedThreadDetectionEnabled | squote }}
{{- end }}
{{- if .Values.cpuStarvationCheckInitialDelayMs }}
- name: CPU_STARVATION_CHECK_INITIAL_DELAY_MS
value: {{ .Values.cpuStarvationCheckInitialDelayMs | squote }}
{{- end }}
{{- if .Values.cpuStarvationCheckIntervalMs }}
- name: CPU_STARVATION_CHECK_INTERVAL_MS
value: {{ .Values.cpuStarvationCheckIntervalMs | squote }}
{{- end }}
{{- if .Values.cpuStarvationCheckThreshold }}
- name: CPU_STARVATION_CHECK_THRESHOLD
value: {{ .Values.cpuStarvationCheckThreshold | squote }}
{{- end }}
{{- if .Values.compressionType }}
- name: COMPRESSION_TYPE
value: {{ .Values.compressionType }}
{{- end }}
- name: USE_PROMETHEUS
value: {{ .Values.metrics.enabled | squote }}
- name: MONITORING_SERVER_PORT
Expand Down
3 changes: 3 additions & 0 deletions charts/dafka-producer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ lingerTimeMs:
# -- Batch processing config https://www.conduktor.io/kafka/kafka-producer-batching/
batchSize:

# -- Batch compression
compressionType: snappy

image:
# -- the image name to use
name: osskit/dafka-producer
Expand Down

0 comments on commit 2300278

Please sign in to comment.