Skip to content

Commit

Permalink
set clickhouse max connections (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazuhiko Yamashita authored Mar 30, 2024
1 parent f4d2f74 commit d53e958
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sentry/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: sentry
description: A Helm chart for Kubernetes
type: application
version: 21.6.1
version: 21.6.2
appVersion: 24.2.0
dependencies:
- name: memcached
Expand Down
2 changes: 2 additions & 0 deletions sentry/templates/_helper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@ Common Snuba environment variables
name: {{ .Values.externalClickhouse.existingSecret }}
key: {{ default "clickhouse-password" .Values.externalClickhouse.existingSecretKey }}
{{- end }}
- name: CLICKHOUSE_MAX_CONNECTIONS
value: {{ .Values.snuba.clickhouse.maxConnections | quote }}
{{- end -}}

{{- define "vroom.env" -}}
Expand Down
1 change: 1 addition & 0 deletions sentry/templates/configmap-snuba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ data:
"port": int({{ include "sentry.clickhouse.port" . }}),
"user": env("CLICKHOUSE_USER", "default"),
"password": env("CLICKHOUSE_PASSWORD", ""),
"max_connections": int(os.environ.get("CLICKHOUSE_MAX_CONNECTIONS", 100)),
"database": env("CLICKHOUSE_DATABASE", "default"),
"http_port": {{ include "sentry.clickhouse.http_port" . }},
"storage_sets": {
Expand Down
2 changes: 2 additions & 0 deletions sentry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,8 @@ snuba:
migrateJob:
env: []

clickhouse:
maxConnections: 100
hooks:
enabled: true
removeOnSuccess: true
Expand Down

0 comments on commit d53e958

Please sign in to comment.