Bug 1984030 - Reduce CPU overhead for ignore-listed NICs
Summary: Reduce CPU overhead for ignore-listed NICs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.9
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 4.9.0
Assignee: Jan Fajerski
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks: 1984074
TreeView+ depends on / blocked
 
Reported: 2021-07-20 13:14 UTC by Jan Fajerski
Modified: 2021-10-18 17:40 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:40:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift node_exporter pull 90 0 None closed Bug 1984030: netclass: retrieve interface names and filter before parsing 2021-07-20 15:14:39 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:40:43 UTC

Description Jan Fajerski 2021-07-20 13:14:19 UTC
Description of problem:
Nodes with a high number of NICs cause high CPU load even if NICs are ignored by node_exporter. See also 
https://issues.redhat.com/browse/MON-1339


Version-Release number of selected component (if applicable):


How reproducible:

Start a single node cluster.

Steps to Reproduce:
1.
2.
3.

Actual results:

CPU utilization is high, no matter how many NICs are ignored.

Expected results:

CPU utilization should decrease as NICs are ignored.
Additional info:

Comment 4 Junqi Zhao 2021-07-22 03:57:01 UTC
tested with 4.9.0-0.nightly-2021-07-21-081948 single-node cluster
# oc get no
NAME                                         STATUS   ROLES           AGE   VERSION
ip-10-0-151-142.us-east-2.compute.internal   Ready    master,worker   52m   v1.21.1+8268f88

total cpu requests for node-exporter is 9Mi
node-exporter-pv4f8
Container Name: node-exporter
resources: map[requests:map[cpu:8m memory:32Mi]]
Container Name: kube-rbac-proxy
resources: map[requests:map[cpu:1m memory:15Mi]]

watched for a while, cpu usage is about 9Mi, no sudden increase
sum(kube_pod_resource_request{resource='cpu',pod='node-exporter-pv4f8',namespace='openshift-monitoring'}) BY (pod, namespace)
{namespace="openshift-monitoring", pod="node-exporter-pv4f8"} 0.009000000000000001

Comment 11 errata-xmlrpc 2021-10-18 17:40:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759


Note You need to log in before you can comment on or make changes to this bug.