Skip to content

Commit 58ce2cb

Browse files
committed
chore(mysql-cluster): plans 10
1 parent b22e3b0 commit 58ce2cb

3 files changed

Lines changed: 19 additions & 9 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ spec:
156156
- name: MYSQL_DATABASE
157157
value: {{ .Values.auth.database | quote }}
158158
{{- end }}
159+
{{- if and .Values.auth.createDatabase .Values.auth.database }}
160+
- name: MAX_CONNECTION_LIMIT
161+
value: {{ .Values.maxConnectionLimit | quote }}
162+
{{- end }}
159163
{{- if or (eq .Values.architecture "replication") (eq .Values.architecture "mgr") }}
160164
- name: MYSQL_REPLICATION_MODE
161165
value: "master"

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ auth:
149149
## initdbScripts:
150150
## my_init_script.sh: |
151151
## #!/bin/bash
152-
## echo "Do something."
152+
## echo "Do something."
153153
##
154154
initdbScripts:
155155
int-mysql.sh: |
@@ -181,6 +181,8 @@ initdbScripts:
181181
echo loose-group_replication_group_seeds="$svc_mgr_host-0.$svc_mgr_host:24901,$svc_mgr_host-1.$svc_mgr_host:24901,$svc_mgr_host-2.$svc_mgr_host:24901" >> $base_conf_file
182182
183183
echo plugin_load_add='group_replication.so' >> $base_conf_file
184+
185+
echo max_connections=$MAX_CONNECTION_LIMIT
184186
185187
## @param initdbScriptsConfigMap ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
186188
##
@@ -211,10 +213,12 @@ primary:
211213
## @param primary.configuration [string] Configure MySQL Primary with a custom my.cnf file
212214
## ref: https://mysql.com/kb/en/mysql/configuring-mysql-with-mycnf/#example-of-configuration-file
213215
##
216+
maxConnectionLimit: 2000
217+
214218
configuration: |-
215219
[mysqld]
216220
# server
217-
max_connections=500
221+
max_connections=10000
218222
default_authentication_plugin=caching_sha2_password
219223
skip-name-resolve
220224
relay-log=relay-log

addons/mysql-cluster/8.0/plans/standard-10/values.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ fullnameOverride: hb-mysql-cluster-standard-10
1111
## @param resources.limits The resources limits for the MinIO® container
1212
## @param resources.requests The requested resources for the MinIO® container
1313
##
14-
resources:
15-
limits:
16-
cpu: 1000m
17-
memory: 1024Mi
18-
requests:
19-
cpu: 100m
20-
memory: 512Mi
14+
primary:
15+
resources:
16+
limits:
17+
cpu: 1000m
18+
memory: 1024Mi
19+
requests:
20+
cpu: 100m
21+
memory: 512Mi
22+
2123

2224
## @section Persistence parameters
2325

0 commit comments

Comments
 (0)