summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging_fluentd
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2017-06-29 12:43:52 -0700
committerJeff Cantrill <jcantril@redhat.com>2017-07-28 16:10:49 -0400
commit61fe309c853946585a2a6a6404ef89dc5ebfb9f0 (patch)
tree6a0338fe4573cc81e54b03641eb1eb14fa045209 /roles/openshift_logging_fluentd
parentee4524068c10df43eeb65bf2ab6606140743a4d5 (diff)
downloadopenshift-61fe309c853946585a2a6a6404ef89dc5ebfb9f0.tar.gz
openshift-61fe309c853946585a2a6a6404ef89dc5ebfb9f0.tar.bz2
openshift-61fe309c853946585a2a6a6404ef89dc5ebfb9f0.tar.xz
openshift-61fe309c853946585a2a6a6404ef89dc5ebfb9f0.zip
Impl fluentd file buffer
(cherry picked from commit 231a7c4ce27ff944d9e14169062f487f57c94dd6)
Diffstat (limited to 'roles/openshift_logging_fluentd')
-rw-r--r--roles/openshift_logging_fluentd/defaults/main.yml2
-rw-r--r--roles/openshift_logging_fluentd/templates/fluentd.j27
2 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_logging_fluentd/defaults/main.yml b/roles/openshift_logging_fluentd/defaults/main.yml
index ce7cfc433..be9943b0d 100644
--- a/roles/openshift_logging_fluentd/defaults/main.yml
+++ b/roles/openshift_logging_fluentd/defaults/main.yml
@@ -57,3 +57,5 @@ openshift_logging_fluentd_es_copy: false
#fluentd_config_contents:
#fluentd_throttle_contents:
#fluentd_secureforward_contents:
+
+openshift_logging_fluentd_file_buffer_limit: 1Gi
diff --git a/roles/openshift_logging_fluentd/templates/fluentd.j2 b/roles/openshift_logging_fluentd/templates/fluentd.j2
index 970e5c2a5..a4cf9a149 100644
--- a/roles/openshift_logging_fluentd/templates/fluentd.j2
+++ b/roles/openshift_logging_fluentd/templates/fluentd.j2
@@ -62,6 +62,8 @@ spec:
- name: dockerdaemoncfg
mountPath: /etc/docker
readOnly: true
+ - name: filebufferstorage
+ mountPath: /var/lib/fluentd
{% if openshift_logging_use_mux_client | bool %}
- name: muxcerts
mountPath: /etc/fluent/muxkeys
@@ -112,6 +114,8 @@ spec:
resource: limits.memory
- name: "USE_MUX_CLIENT"
value: "{{ openshift_logging_use_mux_client | default('false') | lower }}"
+ - name: "FILE_BUFFER_LIMIT"
+ value: "{{ openshift_logging_fluentd_file_buffer_limit | default('1Gi') }}"
volumes:
- name: runlogjournal
hostPath:
@@ -145,3 +149,6 @@ spec:
secret:
secretName: logging-mux
{% endif %}
+ - name: filebufferstorage
+ hostPath:
+ path: "/var/lib/fluentd"