Dell NativeEdge:藍圖部署中的效能問題

Summary: 藍圖部署花費的時間超出預期,且在流暢位元 Pod 上出現較高的 CPU 使用率和效能問題。本文介紹如何對性能進行調整或解決此問題以增加整體藍圖處理時間。

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 容器的 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

此問題的根本原因是 Fluent 位元 Pod 上的 CPU 使用率,包括 未正確設定資源限制。  

 

Resolution

您可以根據資源可用性和負載優化 CPU 限制。以精靈設定 fluent 位元增加 CPU 限制。Fluent bit Pod 由 Deamon set 控制,因此您無法直接編輯 Pod,而必須在 Fluent bit Daemonset 中變更 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.