Reduce fluent-bit memory consumption under backpressure

This commit is contained in:
Stefan Reimer 2021-03-26 10:56:17 +01:00
parent 4d015cc4c6
commit eca69f8b5f
3 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero-logging name: kubezero-logging
description: KubeZero Umbrella Chart for complete EFK stack description: KubeZero Umbrella Chart for complete EFK stack
type: application type: application
version: 0.6.2 version: 0.6.3
appVersion: 1.4.1 appVersion: 1.4.1
home: https://kubezero.com home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
@ -28,4 +28,4 @@ dependencies:
- name: fluent-bit - name: fluent-bit
version: 0.12.3 version: 0.12.3
condition: fluent-bit.enabled condition: fluent-bit.enabled
kubeVersion: ">= 1.16.0" kubeVersion: ">= 1.18.0"

View File

@ -227,7 +227,7 @@ fluent-bit:
tls: false tls: false
input: input:
memBufLimit: 16MB memBufLimit: 4MB
refreshInterval: 10 refreshInterval: 10
logLevel: warn logLevel: warn
@ -256,7 +256,7 @@ fluent-bit:
DB /var/log/flb_kube.db DB /var/log/flb_kube.db
DB.Sync Normal DB.Sync Normal
{{- with .Values.config.input }} {{- with .Values.config.input }}
Mem_Buf_Limit {{ default "16MB" .memBufLimit }} Mem_Buf_Limit {{ default "4MB" .memBufLimit }}
Refresh_Interval {{ default 10 .refreshInterval }} Refresh_Interval {{ default 10 .refreshInterval }}
{{- end }} {{- end }}

View File

@ -11,7 +11,7 @@ GIT_PUSH=${GIT_PUSH:-true}
[[ "$(git branch --show-current)" == "stable" || -n "$FORCE" ]] || { echo "Helm packages should only be built from stable branch !"; exit 1; } [[ "$(git branch --show-current)" == "stable" || -n "$FORCE" ]] || { echo "Helm packages should only be built from stable branch !"; exit 1; }
TMPDIR=$(mktemp -d kubezero-repo.XXX) TMPDIR=$(mktemp -d kubezero-repo.XXX)
mkdir -p $TMPDIR/stage mkdir -p $TMPDIR/stage && trap 'rm -rf $TMPDIR' ERR EXIT
git clone -b gh-pages ssh://git@git.zero-downtime.net:22000/ZeroDownTime/KubeZero.git $TMPDIR/repo git clone -b gh-pages ssh://git@git.zero-downtime.net:22000/ZeroDownTime/KubeZero.git $TMPDIR/repo
# Reset all # Reset all