9.3. 为日志记录子系统组件配置 CPU 和内存限值
您可以根据需要配置每个日志记录子系统组件的 CPU 和内存限值。
9.3.1. 配置 CPU 和内存限值 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
logging 子系统组件允许对 CPU 和内存限值进行调整。
流程
编辑
openshift-logging项目中的ClusterLogging自定义资源(CR):$ oc -n openshift-logging edit ClusterLogging instanceapiVersion: "logging.openshift.io/v1" kind: "ClusterLogging" metadata: name: "instance" namespace: openshift-logging ... spec: managementState: "Managed" logStore: type: "elasticsearch" elasticsearch: nodeCount: 3 resources:1 limits: memory: 16Gi requests: cpu: 200m memory: 16Gi storage: storageClassName: "gp2" size: "200G" redundancyPolicy: "SingleRedundancy" visualization: type: "kibana" kibana: resources:2 limits: memory: 1Gi requests: cpu: 500m memory: 1Gi proxy: resources:3 limits: memory: 100Mi requests: cpu: 100m memory: 100Mi replicas: 2 collection: logs: type: "fluentd" fluentd: resources:4 limits: memory: 736Mi requests: cpu: 200m memory: 736Mi