Skip to content

Commit 0583144

Browse files
adding resource limit and request on slow log
1 parent c5a8ef2 commit 0583144

File tree

2 files changed

+91
-31
lines changed

2 files changed

+91
-31
lines changed
Lines changed: 77 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,81 @@
11
primary:
2-
affinity:
3-
nodeAffinity:
4-
requiredDuringSchedulingIgnoredDuringExecution:
5-
nodeSelectorTerms:
6-
- matchExpressions:
7-
- key: "Infra-Services"
8-
operator: In
9-
values:
10-
- "true"
2+
affinity:
3+
nodeAffinity:
4+
requiredDuringSchedulingIgnoredDuringExecution:
5+
nodeSelectorTerms:
6+
- matchExpressions:
7+
- key: "Infra-Services"
8+
operator: In
9+
values:
10+
- "true"
11+
resources:
12+
limits:
13+
cpu: 350m
14+
memory: 1Gi
15+
requests:
16+
cpu: 200m
17+
memory: 700Mi
18+
19+
sidecars:
20+
- name: slow-log
21+
image: busybox:1.28
22+
args: [/bin/sh, -c, 'tail -n+1 -F /bitnami/mysql/slow-log.log']
23+
volumeMounts:
24+
- name: data
25+
mountPath: /bitnami/mysql
26+
resources:
27+
limits:
28+
cpu: 100m
29+
memory: 256Mi
30+
requests:
31+
cpu: 55m
32+
memory: 156Mi
1133

1234
secondary:
13-
affinity:
14-
nodeAffinity:
15-
requiredDuringSchedulingIgnoredDuringExecution:
16-
nodeSelectorTerms:
17-
- matchExpressions:
18-
- key: "Infra-Services"
19-
operator: In
20-
values:
21-
- "true"
22-
23-
affinity:
24-
nodeAffinity:
25-
requiredDuringSchedulingIgnoredDuringExecution:
26-
nodeSelectorTerms:
27-
- matchExpressions:
28-
- key: "Infra-Services"
29-
operator: In
30-
values:
31-
- "true"
32-
backupjob:
35+
affinity:
36+
nodeAffinity:
37+
requiredDuringSchedulingIgnoredDuringExecution:
38+
nodeSelectorTerms:
39+
- matchExpressions:
40+
- key: "Infra-Services"
41+
operator: In
42+
values:
43+
- "true"
44+
45+
resources:
46+
limits:
47+
cpu: 350m
48+
memory: 1Gi
49+
requests:
50+
cpu: 200m
51+
memory: 700Mi
52+
53+
sidecars:
54+
- name: slow-log
55+
image: busybox:1.28
56+
args: [/bin/sh, -c, 'tail -n+1 -F /bitnami/mysql/slow-log.log']
57+
volumeMounts:
58+
- name: data
59+
mountPath: /bitnami/mysql
60+
resources:
61+
limits:
62+
cpu: 100m
63+
memory: 256Mi
64+
requests:
65+
cpu: 55m
66+
memory: 156Mi
67+
68+
metrics:
69+
resources:
70+
limits:
71+
cpu: 200m
72+
memory: 500Mi
73+
requests:
74+
cpu: 10m
75+
memory: 50Mi
76+
77+
78+
backup:
3379
resources:
3480
requests:
3581
memory: 100Mi
@@ -38,11 +84,11 @@ backupjob:
3884
memory: 200Mi
3985
cpu: 100m
4086

41-
restorejob:
87+
restore:
4288
resources:
4389
requests:
4490
memory: 100Mi
4591
cpu: 50m
4692
limits:
4793
memory: 200Mi
48-
cpu: 100m
94+
cpu: 100m

helm/values/mysqldb/values.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,13 @@ primary:
467467
volumeMounts:
468468
- name: data
469469
mountPath: /bitnami/mysql
470+
resources:
471+
limits:
472+
cpu: 100m
473+
memory: 256Mi
474+
requests:
475+
cpu: 50m
476+
memory: 128Mi
470477

471478

472479
## MySQL Primary Service parameters
@@ -843,6 +850,13 @@ secondary:
843850
volumeMounts:
844851
- name: data
845852
mountPath: /bitnami/mysql
853+
resources:
854+
limits:
855+
cpu: 100m
856+
memory: 256Mi
857+
requests:
858+
cpu: 50m
859+
memory: 128Mi
846860
## MySQL Secondary Service parameters
847861
##
848862
service:

0 commit comments

Comments
 (0)