Skip to content

Commit

Permalink
chore: set binlog for mysql (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldming authored Mar 19, 2024
1 parent 5184a83 commit 8e84151
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/mysql/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: MySQL is a widely used, open-source relational database management

type: application

version: 0.8.0
version: 0.8.1

# This is the version number of the ApeCloud MySQL being deployed,
# rather than the version number of ApeCloud MySQL-Scale itself.
Expand Down
2 changes: 1 addition & 1 deletion addons/mysql/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ service:
pipelines:
metrics:
receivers: [ apecloudmysql, prometheus ]
{{- end }}
{{- end }}
15 changes: 13 additions & 2 deletions addons/mysql/templates/clusterversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ spec:
command:
- bash
- -c
- "/scripts/docker-entrypoint.sh mysqld --server-id $(( ${KB_POD_NAME##*-} + 1)) --ignore-db-dir=lost+found --plugin-load-add=rpl_semi_sync_master=semisync_master.so --plugin-load-add=rpl_semi_sync_slave=semisync_slave.so"
- |
/scripts/docker-entrypoint.sh mysqld \
--server-id $(( ${KB_POD_NAME##*-} + 1)) \
--ignore-db-dir=lost+found \
--plugin-load-add=rpl_semi_sync_master=semisync_master.so \
--plugin-load-add=rpl_semi_sync_slave=semisync_slave.so \
--log-bin={{.Values.dataMountPath}}/binlog/$(KB_POD_NAME)-bin
systemAccountSpec:
cmdExecutorConfig:
image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}
Expand Down Expand Up @@ -59,7 +65,12 @@ spec:
command:
- bash
- -c
- "docker-entrypoint.sh mysqld --server-id $(( ${KB_POD_NAME##*-} + 1)) --plugin-load-add=rpl_semi_sync_source=semisync_source.so --plugin-load-add=rpl_semi_sync_replica=semisync_replica.so"
- |
docker-entrypoint.sh mysqld \
--server-id $(( ${KB_POD_NAME##*-} + 1)) \
--plugin-load-add=rpl_semi_sync_source=semisync_source.so \
--plugin-load-add=rpl_semi_sync_replica=semisync_replica.so \
--log-bin={{.Values.dataMountPath}}/binlog/$(KB_POD_NAME)-bin
systemAccountSpec:
cmdExecutorConfig:
image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:8.0.33

0 comments on commit 8e84151

Please sign in to comment.