Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topologyspreadconstraints plugin is evicting more than expected pods #1535

Open
SaiSasankKhajjayam opened this issue Oct 18, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@SaiSasankKhajjayam
Copy link

What version of descheduler are you using?

descheduler version: v0.30.1

Does this issue reproduce with the latest release?
yes

Which descheduler CLI options are you using?
NA
Please provide a copy of your descheduler policy config file
Pls find the attached unit test case to reproduce the issue.

What k8s version are you using (kubectl version)?

kubectl version Output
$ kubectl version
  Client Version: v1.29.8
  Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
  Server Version: v1.29.8

What did you do?
Problem: descheduler is evicting 26 pods when one rack was restarted (16nodes/4 racks/64 pods/2 topology constraints) and expected eviction should be 16.
Initial Configuration of pods distribution as below:
n1 - rack1 - 4
n2 - rack1 - 4
n3 - rack1 - 4
n4 - rack1 - 4
n5 - rack2 - 4
n6 - rack2 - 4
n7 - rack2 - 4
n8 - rack2 - 4
n9 - rack3 - 4
n10 - rack3 - 4
n11 - rack3 - 4
n12 - rack3 - 4
n13 - rack4 - 4
n14 - rack4 - 4
n15 - rack4 - 4
n16 - rack4 - 4

Entire rack3 was shut down and pod distribution looks as below:

n1 - rack1 - 6
n2 - rack1 - 6
n3 - rack1 - 5
n4 - rack1 - 4
n5 - rack2 - 6
n6 - rack2 - 5
n7 - rack2 - 5
n8 - rack2 - 5
n9 - rack3 - 0
n10 - rack3 - 0
n11 - rack3 - 0
n12 - rack3 - 0

n13 - rack4 - 6
n14 - rack4 - 6
n15 - rack4 - 5
n16 - rack4 - 5

When rack3 was back after some time the descheduler is evicting 26 pods instead of 16 pods.

simulationUnitTestCase.txt

What did you expect to see?
16 pods eviction

What did you see instead?
26 pods evicted.

@SaiSasankKhajjayam SaiSasankKhajjayam added the kind/bug Categorizes issue or PR as related to a bug. label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant