Skip to content

Commit

Permalink
set memory limits for messenger:consume deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
audacioustux committed Aug 22, 2024
1 parent 64c4123 commit 19c2d34
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/mautic/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 5.1.64
version: 5.1.65

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 12 additions & 0 deletions charts/mautic/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ spec:
{{- if .Values.mautic.messenger.consumeEmail.debug }}
- -vvv
{{- end }}
{{- if .Values.mautic.messenger.consumeEmail.memoryLimit }}
- --memory-limit
- {{ .Values.mautic.messenger.consumeEmail.memoryLimit }}
{{- end }}
envFrom:
{{- include "mautic.envFrom" . | nindent 12 }}
volumeMounts:
Expand Down Expand Up @@ -122,6 +126,10 @@ spec:
{{- if .Values.mautic.messenger.consumeHit.debug }}
- -vvv
{{- end }}
{{- if .Values.mautic.messenger.consumeEmail.memoryLimit }}
- --memory-limit
- {{ .Values.mautic.messenger.consumeEmail.memoryLimit }}
{{- end }}
envFrom:
{{- include "mautic.envFrom" . | nindent 12 }}
volumeMounts:
Expand Down Expand Up @@ -161,6 +169,10 @@ spec:
{{- if .Values.mautic.messenger.consumeFailed.debug }}
- -vvv
{{- end }}
{{- if .Values.mautic.messenger.consumeEmail.memoryLimit }}
- --memory-limit
- {{ .Values.mautic.messenger.consumeEmail.memoryLimit }}
{{- end }}
envFrom:
{{- include "mautic.envFrom" . | nindent 12 }}
volumeMounts:
Expand Down
3 changes: 3 additions & 0 deletions charts/mautic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,17 @@ mautic:
memory: 512Mi
requests:
memory: 256Mi
memoryLimit: "384M"
debug: false
consumeFailed:
enabled: true
resources: *message_resources
memoryLimit: "384M"
debug: false
consumeHit:
enabled: true
resources: *message_resources
memoryLimit: "384M"
debug: false

service:
Expand Down

0 comments on commit 19c2d34

Please sign in to comment.