3.4. 配置日志可视化工具
OpenShift Container Platform 使用 Kibana 显示集群日志记录收集的日志数据。
您可以扩展 Kibana 来实现冗余性,并为 Kibana 节点配置 CPU 和内存。
3.4.1. 配置 CPU 和内存限值 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
集群日志记录组件允许对 CPU 和内存限值进行调整。
流程
编辑
openshift-logging项目中的ClusterLogging自定义资源(CR):$ oc edit ClusterLogging instance -n openshift-loggingapiVersion: "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:3 limits: memory: 100Mi requests: cpu: 100m memory: 100Mi replicas: 2 curation: type: "curator" curator: resources:4 limits: memory: 200Mi requests: cpu: 200m memory: 200Mi schedule: "*/10 * * * *" collection: logs: type: "fluentd" fluentd: resources:5 limits: memory: 736Mi requests: cpu: 200m memory: 736Mi