Using scheduling system to run a highstate in batch mode #67594
Replies: 19 comments
-
|
@sebastian-cb, I'm not sure what you're asking with your first question. There is a |
Beta Was this translation helpful? Give feedback.
-
|
@jfindlay, I just double checked this and it looks like a With regards to my second question, I think |
Beta Was this translation helpful? Give feedback.
-
|
@sebastian-cb, that makes more sense to me. I am not sure what the answers are. @garethgreenaway, do you have any comments on @sebastian-cb's questions? |
Beta Was this translation helpful? Give feedback.
-
|
@sebastian-cb I'm not clear with your concern about the high states running in parallel. |
Beta Was this translation helpful? Give feedback.
-
|
I can see a concern with scalability on the master, similar to how a manually triggered highstate can be batched. |
Beta Was this translation helpful? Give feedback.
-
|
@garethgreenaway I've just noticed a high CPU usage caused by |
Beta Was this translation helpful? Give feedback.
-
|
@sebastian-cb Ahh that's a fair concern. A combination of seconds, range and splay should work. Have the job run every 3600 seconds (one hour), use a range of 3am - 4am so it only runs in that time span. It will try to run at 3am, but the range will prevent it from running again at 4am. Then use splay to offset the run time across minions. |
Beta Was this translation helpful? Give feedback.
-
|
@garethgreenaway Ahh, so So there is no way to use batch size with scheduling system to make sure |
Beta Was this translation helpful? Give feedback.
-
|
@garethgreenaway so I tested your recommended solution and this doesn't work as expected: State: Pillar: Although |
Beta Was this translation helpful? Give feedback.
-
|
@jfindlay can we actually convert this question to a feature request? I'm finding more situations where |
Beta Was this translation helpful? Give feedback.
-
|
Sure, batch seems like a good feature to have. |
Beta Was this translation helpful? Give feedback.
-
|
ZD-964 |
Beta Was this translation helpful? Give feedback.
-
|
As a (nasty) workaround, I use Unix cron syntax to schedule highstate every hours but on different minute on each host. Pillar Result: It's not an elegant solution, but works. |
Beta Was this translation helpful? Give feedback.
-
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
|
@garethgreenaway is this something we want to look at for future releases? |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
|
@doesitblend the ZD ticket is archived so I removed the label, feel free to correct if I am wrong, here. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to schedule a
highstateto run every night but not in parallel. Is there a way to addbatchoption to the scheduling system?For example:
Ideally I would like to also randomize the time when it runs. I guess I could schedule it to run every two hours within one hour time range so it will run only once:
Beta Was this translation helpful? Give feedback.
All reactions