mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
38 lines
853 B
Plaintext
38 lines
853 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * observability/logging/cluster-logging-collector.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="log6x-cluster-logging-collector-limits_{context}"]
|
|
= Configure log collector CPU and memory limits
|
|
|
|
Use the log collector to adjust the CPU and memory limits.
|
|
|
|
.Procedure
|
|
|
|
* Edit the `ClusterLogForwarder` custom resource (CR):
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc -n openshift-logging edit ClusterLogging instance
|
|
----
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: observability.openshift.io/v1
|
|
kind: ClusterLogForwarder
|
|
metadata:
|
|
name: instance
|
|
namespace: openshift-logging
|
|
spec:
|
|
collector:
|
|
resources:
|
|
limits: <1>
|
|
memory: 736Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 736Mi
|
|
# ...
|
|
----
|
|
<1> Specify the CPU and memory limits and requests as needed. The values shown are the default values.
|