Skip to content

Commit 7c93cee

Browse files
committed
chore(mysql-cluster): add max_connection_limit
1 parent 482c173 commit 7c93cee

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

addons/mysql-cluster/8.0/chart/mysql-cluster/templates/primary/statefulset.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ spec:
156156
- name: MYSQL_DATABASE
157157
value: {{ .Values.auth.database | quote }}
158158
{{- end }}
159-
{{- if and .Values.auth.createDatabase .Values.auth.database }}
159+
{{- if .Values.primary.maxConnectionLimit }}
160160
- name: MAX_CONNECTION_LIMIT
161-
value: {{ .Values.maxConnectionLimit | quote }}
161+
value: {{ .Values.primary.maxConnectionLimit | quote }}
162162
{{- end }}
163163
{{- if or (eq .Values.architecture "replication") (eq .Values.architecture "mgr") }}
164164
- name: MYSQL_REPLICATION_MODE
@@ -397,3 +397,4 @@ spec:
397397
selector: {{- include "common.tplvalues.render" (dict "value" .Values.primary.persistence.selector "context" $) | nindent 10 }}
398398
{{- end -}}
399399
{{- end }}
400+

addons/mysql-cluster/8.0/chart/mysql-cluster/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ initdbScripts:
182182
183183
echo plugin_load_add='group_replication.so' >> $base_conf_file
184184
185-
echo max_connections=$MAX_CONNECTION_LIMIT
185+
echo max_connections=$MAX_CONNECTION_LIMIT >> $base_conf_file
186186
187187
## @param initdbScriptsConfigMap ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
188188
##

0 commit comments

Comments
 (0)