Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mlrun] MySQL Graceful Shutdown Optimization #1030

Draft
wants to merge 6 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/mlrun/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mlrun
version: 0.9.25
version: 0.9.24
appVersion: 1.6.2
description: Machine Learning automation and tracking
sources:
Expand Down
2 changes: 1 addition & 1 deletion stable/mlrun/templates/db-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data:
mysql -u root -S /var/run/mysqld/mysql.sock -e 'SELECT 1'

graceful_shutdown.sh: |
mysql -u root -S /var/run/mysqld/mysql.sock -e 'SET GLOBAL innodb_fast_shutdown = 0; FLUSH TABLES WITH READ LOCK;'
mysql -u root -S /var/run/mysqld/mysql.sock -e 'SET GLOBAL innodb_fast_shutdown = 0;'
mysqladmin -u root -S /var/run/mysqld/mysql.sock shutdown

init-v3io-mysql.sh: |
Expand Down
2 changes: 1 addition & 1 deletion stable/mlrun/templates/db-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.db.podSecurityContext | nindent 8 }}
terminationGracePeriodSeconds: 120
terminationGracePeriodSeconds: 300
initContainers:
- name: init-mysql
image: "{{ .Values.db.image.repository }}:{{ .Values.db.image.tag }}"
Expand Down