-
Notifications
You must be signed in to change notification settings - Fork 137
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
Allow configuring the default disruption budget to deny/allow #1190
Comments
cc: @akestner |
Just to clarify: You are basically wanting the most permissive budget to be respected rather than the most restrictive -- in reality I don't think you care too much about restrictive/permissive, I think you are just looking for a way to have the configuration more closely match the semantic meaning of what you are intending. Does it make sense to update the title of this issue to something like "Improve semantic meaning of disruption budgets configuration" or something like it. The current title is actually something that we already support so it's a bit confusing from looking through the issues. Next -- in terms of getting something that's closer to what you intend -- I'd agree that we should be less extemporaneous about schedules. I think the key struggle here is the different use-cases that we are trying to meet with this single feature. Today, we're basically trying to meet the following cases:
Number 4 is basically the only one that's difficult to write with budgets today since it's a "open during this window", consider other things closed by default concept whereas the others are a open as wide as possible by default and constrain or block during different times concept. I'm not suggesting that this is a good idea, but to achieve something like this, you basically need to override what the "default open window" is. Today, the "default open window" is of infinite node parallelism and infinite time. You can block this window by applying constraints (blocking budgets) on top of it. To achieve what you want, you would need to override this open window to only be open to the times that you wanted and then apply blocking windows layered on top of it. Effectively budgets:
- duration: 2h
nodes: "5"
schedule: 0 2 * * mon,wed,fri
policy: Open This kind of semantic would imply that this is the default budgets applied if you didn't specify any budgets:
- nodes: 100%
policy: Open
- nodes: 10%
policy: Closed (this is the default and implicit if not specified) |
Are we deviating from the linux cron specification https://www.ibm.com/docs/en/db2oc?topic=task-unix-cron-format |
Seems like this issue is asking for the feature add of "toggle budget default behavior", where the current behavior is that when no budget is active, it's maximally permissive (meaning no limit), and some users want maximally restrictive (meaning a budget of 0). Is this right? @dschunack |
Yes, this is correct. We need to restrict it more on some k8s with a lot of static and critical workloads. |
Description
What problem are you trying to solve?
Hi,
We have 3 maintenance windows in a week to evict pods, but to configuration of the Disruption via Budget is not so easy and in parts not possible.
We want to run the disruption on Mon,Wed,Fri for 2 hours in the night.
The Current config looks like this and it's not easy to understand on the first look.
Our proposal is to configure it like this:
It will help to configure the disruption budget easier as before.
How important is this feature to you?
It's important for us to customize and set the disruption budget in an easy way that is clear to understand for anyone.
We think this is not the case at the moment.
The text was updated successfully, but these errors were encountered: