mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
86 lines
2.0 KiB
Plaintext
86 lines
2.0 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * logging/cluster-logging-collector.adoc
|
|
|
|
[id="cluster-logging-memory-limits_{context}"]
|
|
= Configuring CPU and memory limits
|
|
|
|
The cluster logging components allow for adjustments to both the CPU and memory limits.
|
|
|
|
.Procedure
|
|
|
|
. Edit the Cluster Logging Custom Resource (CR) in the `openshift-logging` project:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc edit ClusterLogging instance -n openshift-logging
|
|
----
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: "logging.openshift.io/v1"
|
|
kind: "ClusterLogging"
|
|
metadata:
|
|
name: "instance"
|
|
|
|
....
|
|
|
|
spec:
|
|
managementState: "Managed"
|
|
logStore:
|
|
type: "elasticsearch"
|
|
elasticsearch:
|
|
nodeCount: 2
|
|
resources: <1>
|
|
limits:
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 200m
|
|
memory: 2Gi
|
|
storage:
|
|
storageClassName: "gp2"
|
|
size: "200G"
|
|
redundancyPolicy: "SingleRedundancy"
|
|
visualization:
|
|
type: "kibana"
|
|
kibana:
|
|
resources: <2>
|
|
limits:
|
|
memory: 1Gi
|
|
requests:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
proxy:
|
|
resources: <2>
|
|
limits:
|
|
memory: 100Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
replicas: 2
|
|
curation:
|
|
type: "curator"
|
|
curator:
|
|
resources: <3>
|
|
limits:
|
|
memory: 200Mi
|
|
requests:
|
|
cpu: 200m
|
|
memory: 200Mi
|
|
schedule: "*/10 * * * *"
|
|
collection:
|
|
logs:
|
|
type: "fluentd"
|
|
fluentd:
|
|
resources: <4>
|
|
limits:
|
|
memory: 736Mi
|
|
requests:
|
|
cpu: 200m
|
|
memory: 736Mi
|
|
----
|
|
<1> Specify the CPU and memory limits and requests for the log store as needed. For Elasticsearch, you must adjust both the request value and the limit value.
|
|
<2> Specify the CPU and memory limits and requests for the log visualizater as needed.
|
|
<3> Specify the CPU and memory limits and requests for the log curator as needed.
|
|
<4> Specify the CPU and memory limits and requests for the log collector as needed.
|