1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/cluster-logging-collector-limits.adoc
Satyajeet Munje 3334efe22b OBSDOCS-1029
2024-05-07 13:57:05 +00:00

65 lines
1.3 KiB
Plaintext

// Module included in the following assemblies:
//
// * observability/logging/cluster-logging-collector.adoc
:_mod-docs-content-type: PROCEDURE
[id="cluster-logging-collector-limits_{context}"]
= Configure log collector CPU and memory limits
The log collector allows for adjustments to both the CPU and memory limits.
.Procedure
* Edit the `ClusterLogging` custom resource (CR) in the `openshift-logging` project:
+
[source,terminal]
----
$ oc -n openshift-logging edit ClusterLogging instance
----
+
[source,yaml]
----
apiVersion: logging.openshift.io/v1
kind: ClusterLogging
metadata:
name: instance
namespace: openshift-logging
spec:
collection:
type: fluentd
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.
////
[source,yaml]
----
$ oc edit ClusterLogging instance
apiVersion: "logging.openshift.io/v1"
kind: "ClusterLogging"
metadata:
name: "instance"
....
spec:
collection:
logs:
rsyslog:
resources:
limits: <1>
memory: 358Mi
requests:
cpu: 100m
memory: 358Mi
----
<1> Specify the CPU and memory limits and requests as needed. The values shown are the default values.
////