Skip to content

Commit 706abfc

Browse files
vadossamcndoit18
authored andcommitted
add pt-kill
1 parent 7b77f7d commit 706abfc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

deploy/charts/mysql-cluster/templates/cluster.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,8 @@ spec:
7171
initFileExtraSQL:
7272
{{- toYaml .Values.initFileExtraSQL | nindent 6 }}
7373
{{- end }}
74+
75+
{{- if .Values.queryLimits }}
76+
queryLimits:
77+
{{ toYaml .Values.queryLimits | indent 4 }}
78+
{{- end }}

deploy/charts/mysql-cluster/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,12 @@ backupCredentials:
4949

5050
# HTTP_URL: ?
5151

52+
## For enabling and configuring pt-kill: https://www.percona.com/doc/percona-toolkit/LATEST/pt-kill.html
53+
#queryLimits:
54+
# maxIdleTime: ... # pt-kill --idle-time
55+
# maxQueryTime: ... # pt-kill --busy-time
56+
# kill: oldest|all|all-but-oldest # pt-kill --victims
57+
# killMode: query|connection # pt-kill --kill-query or pt-kill --kill
58+
# ignoreDb: [] # pt-kill --ignore-db ...
59+
# ignoreCommand: [] # pt-kill --ignore-command ...
60+
# ignoreUser: [] # pt-kill --ignore-user

0 commit comments

Comments
 (0)