Dell NativeEdge:蓝图部署中的性能问题

Summary: 蓝图部署花费的时间超过预期,并且 CPU 利用率更高,并且在 Fluent bit Pod 上出现性能问题。本文介绍如何优化性能或解决此问题,以增加整体蓝图处理时间。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

在蓝图部署期间,Fluent Bit Pod 遇到高 CPU 利用率,接近其定义的 CPU 限制。这种使用量的增加会减慢整个蓝图部署过程的速度。

kubectl top po -A --containers | grep fluent

NAMESPACE   POD NAME                  CONTAINER NAME   CPU (cores)   MEMORY (bytes)
hzp         fluentbit-btz2g           fluentbit        999m          43Mi

CPU Usage: 999m means the container is using 999 millicores, which is nearly 1 full CPU core

 注意:- 要运行 kubectl top 命令,您必须安装度量服务器。   

 

Cause

此问题的根本原因是未正确设置流畅位 Pod 上的 CPU 利用率(包括 资源限制)。  

 

Resolution

您可以根据资源可用性和负载优化 CPU 限制。增加 Daemonset 流畅位中的 CPU 限制。流畅位 Pod 由 Deamon set 控制,因此您不能直接编辑 Pod,并且必须更改流畅位守护程序集中的 CPU 限制值。

kubectl edit daemonset fluentbit -n hzp
    spec:
      containers:
      - env:
        - name: AWS_ACCESS_KEY_ID
          valueFrom:
            secretKeyRef:
              key: AWS_ACCESS_KEY_ID
              name: eo-management-seaweedfs-s3-secret
        - name: AWS_SECRET_ACCESS_KEY
          valueFrom:
            secretKeyRef:
              key: AWS_SECRET_ACCESS_KEY
              name: eo-management-seaweedfs-s3-secret
        - name: K8S_NODE_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: spec.nodeName
        - name: FLUENT_FOWARD_HOST
          value: localhost
        - name: FLUENT_FOWARD_PORT
          value: "80"
        image: harbor-dell.default.svc.cluster.local/renbaobabga/fluent/fluent-bit:3.2.6
        imagePullPolicy: IfNotPresent
        name: fluentbit
        ports:
        - containerPort: 8080
          protocol: TCP
        resources:
          limits:
            cpu: "1" >> change it to number depends on your env load and resource allocation  

CPU:“1” >> ,将其更改为数字取决于您的环境负载和资源分配。 

提醒:- 上述更改需要一些时间并重新创建流畅的位 pod。 

通过运行以下命令验证 CPU 限制更改: 
kubectl describe po fluentbit-btz2g -n hzp

通过运行以下命令验证 CPU 使用情况: 
kubectl top po -A --containers | grep fluent

Affected Products

NativeEdge Solutions, NativeEdge
Article Properties
Article Number: 000329136
Article Type: Solution
Last Modified: 10 Jun 2025
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.