-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-1.8] [Scheduler] Handle permanent pending pods (#6603)
* Handle permanent pending pods When the autoscaler tries to scale up the number of the statefulset pods but some pods are unschedulable due to missing resources in the cluster, the scheduler ends up bringing every already scheduled resource (vpod) to Ready=False since pending pods have no nodes assigned (Pod.Spec.NodeName is empty), so when the scheduler tries to build the state of the system, it will try to get the empty name node which doesn't ever exist. To reproduce this issue, we can use this command on a small cluster (on KinD is consistently reproducible since it's very unlikely that KinD locally can schedule hundreds of pods): ``` seq 100 | xargs -I{} sh -c "kubectl create ns {}; kubectl apply -f ../kafka-source-example.yaml -n {}" ``` where `kafka-source-example.yaml` is: ``` apiVersion: kafka.strimzi.io/v1beta2 kind: KafkaTopic metadata: name: knative-demo-topic namespace: kafka labels: strimzi.io/cluster: my-cluster spec: partitions: 3 replicas: 1 config: retention.ms: 7200000 segment.bytes: 1073741824 * Review comments Signed-off-by: Pierangelo Di Pilato <[email protected]> Signed-off-by: Pierangelo Di Pilato <[email protected]> Co-authored-by: Pierangelo Di Pilato <[email protected]>
- Loading branch information
1 parent
ae5fdcc
commit 23a7b56
Showing
3 changed files
with
121 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters