Comments (10)
Hi @ckotzbauer
You are right, I was so focused on my usecase that I didn't even pay attention to the other fields of the cron.
Yes a new flag with reboot-day-of-month
would definitely be more effective in solving the problem.
from kured.
We have same usecase, but with slightly different requirements.
How about a "max-reboot-frequency: Ndays"
It would play well with the current configuration flag, and in addition it would check that last reboot was not executed less than "Ndays".
That way it's easy to configure "reboot every Mondays, from 2am to 7am at most every two weeks" or "every 3 months"
Doesn't colide with day-of-month, both could work together nicely. For our usecase I am more interested to limit the frequency.
from kured.
@ckotzbauer, yes it matches 100% the feature request, thank you for the quick review !
Not sure it matches @robinbobst.
from kured.
Hi @robinbobst,
thanks for your request.
There were some similar requests in the past, but it was not implemented yet, it seemd that the need from the community was not that big.
However, it would be possible to implement a cron-like feature.
One important question which came to my mind: Now (with the reboot-days and -time) there's a timeframe where kured is allowed to reboot nodes. A cron works differently and specifies a recurring timestamp, not a timeframe. As the cluster normally has multiple nodes and the full-reboot can take several hours, a single timestamp, described as a cron would not be enough...
from kured.
Hi @ckotzbauer
Thanks for your fast response.
Yes you are right regarding the timestamp.
My idea was that this could be combined with the existing options --start-time
& --end-time
Just like with the option --reboot-days
you specify on which day the node get rebooted and with the --start-time
& --end-time
options you specify in what time-window this should occur on this specific day.
I would look at the cron feature as an extension of the --reboot-days
option.
The config would look something like this:
--cron "5 4 2 * *"
--start-time "18:00:00"
--end-time "23:59:59"
--time-zone "UTC"
from kured.
Okay, thanks for the explanations. I'm now sure that the cron-pattern is the wrong way to achieve this. When it should be used together with the existing flags, its not very transparent to the user what would happen and which of the (partially overlapping) behaviours takes place.
You can't use the reboot-days
flag because the maintenance windows are always on the same day-of-month (which means every weekday can be used). So I think a new flag to specify the reboot-day-of-month
instead of the reboot-days
would be much more sufficient. WDYT?
from kured.
Not exactly --max-reboot-frequency
, but I think it is what @ant31 suggests: #904
from kured.
@robinbobst @ant31 I like the approach of @leonnicolas and I think it might cover your needs as well, what do you think?
from kured.
This issue was automatically considered stale due to lack of activity. Please update it and/or join our slack channels to promote it, before it automatically closes (in 7 days).
from kured.
This issue was automatically considered stale due to lack of activity. Please update it and/or join our slack channels to promote it, before it automatically closes (in 7 days).
from kured.
Related Issues (20)
- Make nsenter in reboot command optional HOT 9
- 'Permission denied' when using signal reboot mechanism to reboot AKS nodes HOT 4
- Is there any plan to release Kured 1.15.0 image to docker.io or ghcr.io? HOT 3
- Kured container image link HOT 1
- Non-systemd support HOT 1
- Use `kubectl rollout restart` on single-replica Deployments with PDB HOT 4
- Kured should verify if node is still drained when delaying reboot HOT 5
- Optimization: RebootBlockers can be checked concurrently HOT 1
- [Suggestion] - Change default reboot path to something else HOT 1
- Please build new version due to vulnerabilities in golang/x/net 0.17.0
- V1.15.1 does not seem to do any rebooting. HOT 2
- Question: where to set configuration: rebootSentinelCommand: 'sh -c "! needs-restarting --reboothint"' HOT 2
- How can I use this tool for shut down HOT 2
- kured version 5.4.1 disregard rebootsentinel flag on installation HOT 2
- 2 out of 8 nodes are not being rebooted (randomly ) HOT 2
- A security vulnerability may cause whole cluster been hijacked HOT 3
- Kured not rebooting node with example `var/run/reboot-required` file HOT 5
- Sentinel Command not working
- Kured is not uncordoning / removing label after reboot HOT 1
- Security vulnerabilities HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kured.