che icon indicating copy to clipboard operation
che copied to clipboard

unable to comprehend the value shown as cpu metrics in theia-ide

Open Divine1 opened this issue 2 years ago • 9 comments

Summary

in theia-ide, cpu metrics shows Used 127895000m (used) / 500m (limited) . is the value shown here correct or incorrect?

i'm not able to comprehend the meaning of this value. i was expecting the value to be lessthan 500m.

image

My understanding is 500m implies 0.5core cpu

Relevant information

No response

Divine1 avatar Jun 28 '22 18:06 Divine1

cc @svor

benoitf avatar Jun 29 '22 07:06 benoitf

It seems the bug on the resources monitor plugin side. Metrics server provides the value of used CPU in nanocores (nanoCPU) but the Resource Monitor displays this value with m (millicores/milliCPU).

@Divine1 could you please provide the information about the devfile and cluster which you use, because this problem is not reproducible on dogfooding instance with getting started samples.

svor avatar Jun 29 '22 08:06 svor

@svor thank you for the response. the cpu metric in nanocores makes sense.

i used below devfile.yaml , but i have removed the source code repo and image information. i used a java based project here(version jdk8). is this information sufficient?

schemaVersion: 2.1.0
metadata:
  name: cbfsel-repo
projects:
  - name: cbfsel-project
    git:
      checkoutFrom:
        revision: master
      remotes:
        origin: https://gitlab.org.com/cbf-sel.git
components:
  - container:
      image: 'internalOrganizationRepoDockerImage:jdk8img'
      memoryLimit: 4G
      endpoints:
        - exposure: public
          name: 4444-tcp
          protocol: tcp
          targetPort: 4444
        - exposure: public
          name: 5900-tcp
          protocol: tcp
          targetPort: 5900
        - exposure: public
          name: 7900-http
          protocol: http
          targetPort: 7900
          secure: true
      volumeMounts:
        - name: m2volume
          path: /home/user/.m2
    name: javacontainer
  - name: m2volume
    volume:
      size: 4G
commands:
  - exec:
      commandLine: mvn clean package -DskipTests
      component: javacontainer
      group:
        isDefault: true
        kind: build
      label: 'build project using maven'
      workingDir: '${PROJECT_SOURCE}'
    id: mvnpackage

Divine1 avatar Jun 29 '22 08:06 Divine1

@Divine1 it might be interesting as well if you could provide the raw kubernetes metrics for this pod

(so we can see how it's reported)

benoitf avatar Jun 29 '22 11:06 benoitf

@benoitf

below is the raw k8s metric for the pod kubectl top pods -A

image

image

i have installed eclipseche in k8s cluster created via kubeadm.

@svor

Divine1 avatar Jun 29 '22 11:06 Divine1

@Divine1 is this bug still reproducible? I cannot create a workspace based on your devfile.

vitaliy-guliy avatar Aug 22 '22 13:08 vitaliy-guliy

@vitaliy-guliy this issue is fixed by @svor in #20809 i think, i will confirm once i check it. i will close this ticket for now.

need to update a valid container image in devfile.yaml to make it work.

Divine1 avatar Aug 22 '22 13:08 Divine1

I think this issue is a subtask of #20809

vitaliy-guliy avatar Aug 22 '22 13:08 vitaliy-guliy

It's still actual https://github.com/eclipse/che/issues/21683

svor avatar Sep 05 '22 08:09 svor

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

che-bot avatar Mar 04 '23 00:03 che-bot

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

che-bot avatar Sep 02 '23 00:09 che-bot