Browse Source

Adding environment variables FLUENTD_CPU_LIMIT, FLUENTD_MEMORY_LIMIT, MUX_CPU_LIMIT, MUX_MEMORY_LIMIT.

Noriko Hosoi 7 years ago
parent
commit
33f3a95da2

+ 4 - 0
roles/openshift_logging_fluentd/templates/fluentd.j2

@@ -97,6 +97,10 @@ spec:
           value: "{{ openshift_logging_fluentd_buffer_queue_limit }}"
         - name: "BUFFER_SIZE_LIMIT"
           value: "{{ openshift_logging_fluentd_buffer_size_limit }}"
+        - name: "FLUENTD_CPU_LIMIT"
+          value: "{{ openshift_logging_fluentd_cpu_limit }}"
+        - name: "FLUENTD_MEMORY_LIMIT"
+          value: "{{ openshift_logging_fluentd_memory_limit }}"
       volumes:
       - name: runlogjournal
         hostPath:

+ 4 - 0
roles/openshift_logging_mux/templates/mux.j2

@@ -107,6 +107,10 @@ spec:
           value: "{{ openshift_logging_mux_buffer_queue_limit }}"
         - name: "BUFFER_SIZE_LIMIT"
           value: "{{ openshift_logging_mux_buffer_size_limit }}"
+        - name: "MUX_CPU_LIMIT"
+          value: "{{ openshift_logging_mux_cpu_limit }}"
+        - name: "MUX_MEMORY_LIMIT"
+          value: "{{ openshift_logging_mux_memory_limit }}"
       volumes:
       - name: config
         configMap: