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

CronJob's every minute - ask teams to reduce these and possibly put them into a persistent pod. #291

Closed
StevenBarre opened this issue Apr 24, 2020 · 7 comments
Assignees
Labels
communications ocp3 Work assigned to the AdvSol MCS team for OCP 3 Platform

Comments

@StevenBarre
Copy link
Contributor

https://trello.com/c/Qz9BuCh0/94-cronjobs-every-minute-ask-teams-to-reduce-these-and-possibly-put-them-into-a-persistent-pod

Push Cron education out to community regarding best practices for Cron scheduling

  • Kubernetes scheduled -
@StevenBarre StevenBarre added action-required This ticket requires community actions. ocp3 Work assigned to the AdvSol MCS team for OCP 3 Platform and removed action-required This ticket requires community actions. labels Apr 24, 2020
@jefkel
Copy link
Contributor

jefkel commented Apr 29, 2020

Possibly something that can be added to Cailey's awesome documentation and communication push?

@jefkel jefkel removed their assignment Apr 29, 2020
@StevenBarre
Copy link
Contributor Author

@caggles could we add something to your docs about not running cronjobs too frequently?

@StevenBarre
Copy link
Contributor Author

@caggles could we add something to your docs about not running cronjobs too frequently?

@tmorik can you check if there are still active cronjobs that run too frequently on the platform?

$ oc get cronjob --all-namespaces | grep -E '\* \* \* \* \*|\*/1 \* \* \* \*|NAMESPACE' | grep -v True | awk '{print $1"/"$2}'

@tmorik
Copy link

tmorik commented Jun 19, 2020

@sbarre-esit , Command output is like this:

 $ oc get cronjob --all-namespaces | grep -E '\* \* \* \* \*|\*/1 \* \* \* \*|NAMESPACE' | grep -v True | awk '{print $1"/"$2}'
NAMESPACE/NAME
zcd4ou-dev/future-effective-filings-dev

@caggles
Copy link
Contributor

caggles commented Jul 21, 2020

I'm working on the docs right now, and I'm hoping to provide some guidance on what can/should be done when a job runs very often. First solution is "don't run the job so often" but I'm not sure where to find docs on how to put your cronjobs into a persistent pod - can anybody point me towards some if you're already aware of them? If not, I'll poke around some more on my own.

@StevenBarre
Copy link
Contributor Author

https://hub.docker.com/_/jobber looks cool?

@caggles
Copy link
Contributor

caggles commented Jul 21, 2020

An initial version of the doc is here: #548

I'll open another ticket to further investigate Jobber and maybe provide more guidance on using it later, but hopefully this is a good starting place for the document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
communications ocp3 Work assigned to the AdvSol MCS team for OCP 3 Platform
Projects
None yet
Development

No branches or pull requests

5 participants