Welcome to the Linux Foundation Forum!

Ex 4.5

Hello!

Ex 4.5 says "You should find a stress command consuming the majority of the CPU on one node, the worker".
I only can get top output at pods and nodes levels, not at processes level .
Any help on how to get the stress command resources usage?

(my env Ubuntu 18.04, k8s 1.19, kube-metrics server installed)

Thank you in advance!

Stefan

Comments

  • chrispokorni
    chrispokorni Posts: 1,129

    Hi @suser,

    The top command displays resource usage by process, and stress should be listed as the first process, consuming the most CPU and memory of the node. Keep in mind, however, that top needs to be run on the node where the stressmeout pod has been scheduled in order to capture the resource utilization of its stress container.

    Regards,
    -Chris

Categories

Upcoming Training