-
Notifications
You must be signed in to change notification settings - Fork 680
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
feature: support setting gracePeriodSeconds in DeschedulerPolicy #1537
Comments
/assign |
@damemi @ingvagabund @a7i |
We've never had a use-case for it, typically eviction needs to happen immediately. What is your use-case for this? |
@a7i thanks for quick reply Furthermore, our SREs, during manual node maintenance using kubectl drain, typically include a reasonable --grace-period flag. We aim to have the same functionality available when utilizing the descheduler for rescheduling, maintaining consistency in the approach across both evictions and node maintenance operations. |
https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#create-eviction-pod-v1-core eviction API does not currently provides means to specify gracePeriodSeconds. |
@googs1025 I wonder how this works. Have you had a chance to implement it and see whether it works? |
We currently use https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#eviction-v1-policy |
This is a WIP pr: |
Is your feature request related to a problem? Please describe.
GracePeriodSeconds is important for setting up evictions because it ensures that Pods have enough time to perform necessary cleanup operations before being deleted, thereby ensuring data consistency and service availability. Depending on application requirements, setting GracePeriodSeconds appropriately can improve system stability and reliability.
Describe the solution you'd like
descheduler/pkg/descheduler/evictions/evictions.go
Lines 199 to 222 in ef0c2c1
Describe alternatives you've considered
What version of descheduler are you using?
descheduler version:
Additional context
The text was updated successfully, but these errors were encountered: