Giter Club home page Giter Club logo

Comments (4)

ellistarn avatar ellistarn commented on August 22, 2024

Since Karpenter is metrics based, the scaling behavior is all about the metric. The easiest way to debug is to observe the metric is to go look at prometheus and search karpenter_ and your metric should show up.

There's also a 5 minute scale down delay window, which should prevent the "flapping" behavior you're talking about.

With respect to "spreading", Karpenter isn't a scheduler, so it has no control over whether or not the pods get scheduled to the same node. All it's doing is looking at how many resources are requested by pods that were assigned to the node (by the scheduler) and then scaling up once it passes a threshhold.

Can you share your configs?

from karpenter-provider-aws.

ellistarn avatar ellistarn commented on August 22, 2024

Reading a bit more into your custom scheduler. Does it set pod.spec.nodeName at some point? Assuming you're using reserved capacity, we rely on that for making calculations: https://github.com/awslabs/karpenter/blob/main/pkg/metrics/producers/reservedcapacity/producer.go#L51

from karpenter-provider-aws.

jalawala avatar jalawala commented on August 22, 2024

Thanks for the help. This is due to a minor bug in the config files. After fixing it, Karpenter is able to scale fine. We can close the issue.

from karpenter-provider-aws.

jalawala avatar jalawala commented on August 22, 2024

This is fixed after fixing a bug in the application config files

from karpenter-provider-aws.

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.