eclipse-tractusx / tutorial-resources

Apache License 2.0
11 stars 23 forks source link

Performance - high CPU load while idling #302

Closed anschl closed 3 months ago

anschl commented 4 months ago

Hi everyone,

I noticed that the deployed MXD has a high CPU load even though the system is not in use at all: image image

Although we are running the MXD on a fairly low powered Server (AWS EC2 t3a.large) I would expect the load to stay low until I request something. We pinned the EDC's version to 0.6.0.

I find it interesting that the database has the highest load of all pods. Also, Alice's CPU load is higher than Bob's - maybe because it contains more Assets? What else is running on there while idling? Would you say this CPU load is normal?

ciprian-nicuta commented 3 months ago

Hi, I deployed mxd with edc 0.6.0 on a t3.large, and from my experience I see a large spike in CPU usage at the initial stage but the usage gets slowly down to an average of 25% after ±20 minutes.

Screenshot 2024-05-14 at 14 23 04

When using Htop we can also see that a half of all cpu usage is dedicated to system and IRQ. So total user CPU usage after ±20 minutes is around 12% this inludes k8s system pods.

Screenshot 2024-05-14 at 14 26 54

Htop CPU colors for reference: Green: The % of CPU used for user processes Red: The % of CPU used by system/kernel processes Yellow/Orange: The % of CPU used by IRQ time

I also checked for pod logs at info level, and there is rarely something happening on default namespace pods.

So I would say this level of CPU usage idling is normal.

How much time after the start the screenshot is taken? Is CPU usage going down as shown on the first image ?

ciprian-nicuta commented 3 months ago

@anschl should we consider this issue resolved?

anschl commented 3 months ago

Closing as this amount of CPU load seems to be expected.