Skip to content

Commit 1fec655

Browse files
committed
Add resource limits for Fluent Bit container and memory buffer size limit for each input
1 parent 475b492 commit 1fec655

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

charts/templates/configmap.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ data:
3737
Tag kube.marklogic.logs.error
3838
Path_Key path
3939
Parser error_parser
40+
Mem_Buf_Limit 4MB
4041
{{- end }}
4142
4243
{{- if .Values.logging.trackFiles.accessLogs }}
@@ -47,6 +48,7 @@ data:
4748
tag kube.marklogic.logs.access
4849
Path_Key path
4950
Parser access_parser
51+
Mem_Buf_Limit 4MB
5052
{{- end }}
5153
5254
{{- if .Values.logging.trackFiles.requestLogs }}
@@ -57,6 +59,7 @@ data:
5759
tag kube.marklogic.logs.request
5860
Path_Key path
5961
Parser json_parser
62+
Mem_Buf_Limit 4MB
6063
{{- end }}
6164
6265
{{- if .Values.logging.trackFiles.crashLogs }}
@@ -66,6 +69,7 @@ data:
6669
Read_from_head true
6770
tag kube.marklogic.logs.crash
6871
Path_Key path
72+
Mem_Buf_Limit 4MB
6973
{{- end }}
7074
7175
{{- if .Values.logging.trackFiles.auditLogs }}
@@ -75,6 +79,7 @@ data:
7579
Read_from_head true
7680
tag kube.marklogic.logs.audit
7781
Path_Key path
82+
Mem_Buf_Limit 4MB
7883
{{- end }}
7984
8085
outputs.conf: |

charts/templates/statefulset.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ spec:
161161
valueFrom:
162162
fieldRef:
163163
fieldPath: metadata.name
164+
resources:
165+
requests:
166+
cpu: 10m
167+
memory: 32Mi
168+
limits:
169+
cpu: 100m
170+
memory: 128Mi
164171
{{- end }}
165172
{{- with .Values.nodeSelector }}
166173
nodeSelector: {{- toYaml . | nindent 8}}

0 commit comments

Comments
 (0)