Skip to content

Commit

Permalink
feat: add maxTasksPerChild option to Sentry worker deployments (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
patsevanton authored Oct 24, 2024
1 parent 2a3a030 commit bc32900
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ spec:
- "--logformat"
- "{{ .Values.sentry.workerEvents.logFormat }}"
{{- end }}
{{- if .Values.sentry.workerEvents.maxTasksPerChild }}
- "--max-tasks-per-child"
- "{{ .Values.sentry.workerEvents.maxTasksPerChild }}"
{{- end }}
env:
- name: C_FORCE_ROOT
value: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ spec:
- "--logformat"
- "{{ .Values.sentry.workerTransactions.logFormat }}"
{{- end }}
{{- if .Values.sentry.workerTransactions.maxTasksPerChild }}
- "--max-tasks-per-child"
- "{{ .Values.sentry.workerTransactions.maxTasksPerChild }}"
{{- end }}
env:
- name: C_FORCE_ROOT
value: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ spec:
- "--logformat"
- "{{ .Values.sentry.worker.logFormat }}"
{{- end }}
{{- if .Values.sentry.worker.maxTasksPerChild }}
- "--max-tasks-per-child"
- "{{ .Values.sentry.worker.maxTasksPerChild }}"
{{- end }}
env:
- name: C_FORCE_ROOT
value: "true"
Expand Down
3 changes: 3 additions & 0 deletions charts/sentry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ sentry:
# logLevel: "WARNING" # DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL
# logFormat: "machine" # human|machine
# excludeQueues: ""
# maxTasksPerChild: 1000
# it's better to use prometheus adapter and scale based on
# the size of the rabbitmq queue
autoscaling:
Expand Down Expand Up @@ -292,6 +293,7 @@ sentry:
# podLabels: {}
# logLevel: "WARNING" # DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL
# logFormat: "machine" # human|machine
# maxTasksPerChild: 1000
# it's better to use prometheus adapter and scale based on
# the size of the rabbitmq queue
autoscaling:
Expand Down Expand Up @@ -327,6 +329,7 @@ sentry:
# podLabels: {}
# logLevel: "WARNING" # DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL
# logFormat: "machine" # human|machine
# maxTasksPerChild: 1000
# it's better to use prometheus adapter and scale based on
# the size of the rabbitmq queue
autoscaling:
Expand Down

0 comments on commit bc32900

Please sign in to comment.