Skip to content

Commit a305886

Browse files
authored
Merge pull request #69107 from abrennan89/OBSDOCS-681
OBSDOCS-681: Update Fluentd config docs
2 parents d0d8a55 + b43f6e1 commit a305886

File tree

4 files changed

+32
-35
lines changed

4 files changed

+32
-35
lines changed

modules/cluster-logging-collector-limits.adoc

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The log collector allows for adjustments to both the CPU and memory limits.
1010

1111
.Procedure
1212

13-
. Edit the `ClusterLogging` custom resource (CR) in the `openshift-logging` project:
13+
* Edit the `ClusterLogging` custom resource (CR) in the `openshift-logging` project:
1414
+
1515
[source,terminal]
1616
----
@@ -19,23 +19,20 @@ $ oc -n openshift-logging edit ClusterLogging instance
1919
+
2020
[source,yaml]
2121
----
22-
apiVersion: "logging.openshift.io/v1"
23-
kind: "ClusterLogging"
22+
apiVersion: logging.openshift.io/v1
23+
kind: ClusterLogging
2424
metadata:
25-
name: "instance"
25+
name: instance
2626
namespace: openshift-logging
27-
28-
...
29-
3027
spec:
3128
collection:
32-
logs:
33-
fluentd:
34-
resources:
35-
limits: <1>
36-
memory: 736Mi
37-
requests:
38-
cpu: 100m
39-
memory: 736Mi
29+
type: fluentd
30+
resources:
31+
limits: <1>
32+
memory: 736Mi
33+
requests:
34+
cpu: 100m
35+
memory: 736Mi
36+
# ...
4037
----
4138
<1> Specify the CPU and memory limits and requests as needed. The values shown are the default values.

modules/cluster-logging-collector-tuning.adoc

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
[id="cluster-logging-collector-tuning_{context}"]
77
= Advanced configuration for the Fluentd log forwarder
88

9+
include::snippets/logging-fluentd-dep-snip.adoc[]
10+
911
The {logging-title} includes multiple Fluentd parameters that you can use for tuning the performance of the Fluentd log forwarder. With these parameters, you can change the following Fluentd behaviors:
1012

1113
* Chunk and chunk buffer sizes
@@ -114,7 +116,7 @@ metadata:
114116
name: instance
115117
namespace: openshift-logging
116118
spec:
117-
forwarder:
119+
collection:
118120
fluentd:
119121
buffer:
120122
chunkLimitSize: 8m <1>
@@ -126,7 +128,7 @@ spec:
126128
retryType: periodic <7>
127129
retryWait: 1s <8>
128130
totalLimitSize: 32m <9>
129-
...
131+
# ...
130132
----
131133
<1> Specify the maximum size of each chunk before it is queued for flushing.
132134
<2> Specify the interval between chunk flushes.
@@ -156,18 +158,19 @@ $ oc extract configmap/collector-config --confirm
156158
[source,terminal]
157159
----
158160
<buffer>
159-
@type file
160-
path '/var/lib/fluentd/default'
161-
flush_mode interval
162-
flush_interval 5s
163-
flush_thread_count 3
164-
retry_type periodic
165-
retry_wait 1s
166-
retry_max_interval 300s
167-
retry_timeout 60m
168-
queued_chunks_limit_size "#{ENV['BUFFER_QUEUE_LIMIT'] || '32'}"
169-
total_limit_size 32m
170-
chunk_limit_size 8m
171-
overflow_action throw_exception
161+
@type file
162+
path '/var/lib/fluentd/default'
163+
flush_mode interval
164+
flush_interval 5s
165+
flush_thread_count 3
166+
retry_type periodic
167+
retry_wait 1s
168+
retry_max_interval 300s
169+
retry_timeout 60m
170+
queued_chunks_limit_size "#{ENV['BUFFER_QUEUE_LIMIT'] || '32'}"
171+
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE_PER_BUFFER'] || '8589934592'}"
172+
chunk_limit_size 8m
173+
overflow_action throw_exception
174+
disable_chunk_backup true
172175
</buffer>
173176
----

modules/cluster-logging-deploy-cli.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ spec:
9393
----
9494
$ oc apply -f <filename>.yaml
9595
----
96+
+
97+
The {clo} is installed to the `openshift-logging` namespace.
9698

9799
.Verification
98100

modules/infrastructure-moving-logging.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ apiVersion: logging.openshift.io/v1
3131
kind: ClusterLogging
3232
# ...
3333
spec:
34-
collection:
35-
logs:
36-
fluentd:
37-
resources: null
38-
type: fluentd
3934
logStore:
4035
elasticsearch:
4136
nodeCount: 3

0 commit comments

Comments
 (0)