aws / karpenter-provider-aws

Karpenter is a Kubernetes Node Autoscaler built for flexibility, performance, and simplicity.
https://karpenter.sh
Apache License 2.0
6.68k stars 935 forks source link

Delay in Pod Scheduling After Scale-Up Action #7063

Open Idan-Lazar opened 1 week ago

Idan-Lazar commented 1 week ago

Description

Observed Behavior: Pods are scheduled approximately 30 seconds after a scale-up action.

Expected Behavior: I want the pods to be scheduled immediately after the scale-up action.

Reproduction Steps (Please include YAML):

Versions:

jigisha620 commented 1 week ago

How quickly are you expecting the pods to get scheduled? Pod would start running only when the capacity is provisioned for it to run. And that could take time, but that's not something controlled by Karpenter.

Idan-Lazar commented 1 week ago

Before Karpenter, it takes less than a second. For example, let's assume that I have a deployment with two pods of Ngnix, when a pod is terminated a new pod will show after 30 seconds. It's a long time, and without Karpenter it doesn't take long.