Coder Social home page Coder Social logo

Comments (8)

ptagr avatar ptagr commented on August 19, 2024

The CPU and Mem percentages reported in the logs are most definitely wrong. The one that kubectl top shows is the correct one.

from descheduler.

aveshagarwal avatar aveshagarwal commented on August 19, 2024

@ptagr Thanks for reporting this. I am looking into this. meanwhile could you send "kubectl describe node" for the node gke-asia-northeast1-std--default-pool-36ae422e-32s4?

from descheduler.

aveshagarwal avatar aveshagarwal commented on August 19, 2024

"I0508 07:06:40.392782 1 lownodeutilization.go:69] No node is underutilized, nothing to do here, you might tune your thersholds further"

@ptagr the reason, the descheduler did not evict any pod as it did not find any nodes that are under utilized. You should increase your "nodeResourceUtilizationThresholds: thresholds:" to some higher values.

from descheduler.

ptagr avatar ptagr commented on August 19, 2024

@aveshagarwal I get it but the descheduler is getting the wrong values for the current CPU and Mem utilization. I have multiple sources that report about 1% CPU usage for the nodes and from the logs, the descheduler says its 46% utilized.

Stark difference between what is reported in the logs vs reported by kubectl top

lownodeutilization.go:144] Node "gke-asia-northeast1-std--default-pool-36ae422e-32s4" is over utilized with usage: api.ResourceThresholds{"cpu":45.972309628697296, "memory":55.872961663211015, "pods":7.2727272727272725}
vs

gke-asia-northeast1-std--default-pool-36ae422e-32s4 199m 1% 12555Mi 12%

from descheduler.

ptagr avatar ptagr commented on August 19, 2024

I think I got it completely wrong. CPU Usage is not the actual usage but the (CPU Request) Usage and the same for memory! Let me look over it again.

from descheduler.

aveshagarwal avatar aveshagarwal commented on August 19, 2024

@ptagr Descheduler like scheduler does its computation based on resource requests not actual utlization on any node.

from descheduler.

ptagr avatar ptagr commented on August 19, 2024

this makes sense. the describe yields:

  (Total limits may be over 100 percent, i.e., overcommitted.)
  CPU Requests  CPU Limits   Memory Requests  Memory Limits
  ------------  ----------   ---------------  -------------
  6305m (39%)   6200m (39%)  41200Mi (42%)    41310Mi (42%)```

got confused in my head 

from descheduler.

ptagr avatar ptagr commented on August 19, 2024

Closing this issue.

from descheduler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.