Managing cron jobs across multiple servers
We are facing a problem with managing cron jobs over multiple servers with dependencies.
I hope there is an opensource central management project that I can be used to handle that and report the status of each job.
I found a project called chronos that runs on a top of mesos, but is there any alternative?
cron administration
bumped to the homepage by Community♦ 16 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
We are facing a problem with managing cron jobs over multiple servers with dependencies.
I hope there is an opensource central management project that I can be used to handle that and report the status of each job.
I found a project called chronos that runs on a top of mesos, but is there any alternative?
cron administration
bumped to the homepage by Community♦ 16 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here
– MelBurslan
Apr 20 '16 at 15:55
add a comment |
We are facing a problem with managing cron jobs over multiple servers with dependencies.
I hope there is an opensource central management project that I can be used to handle that and report the status of each job.
I found a project called chronos that runs on a top of mesos, but is there any alternative?
cron administration
We are facing a problem with managing cron jobs over multiple servers with dependencies.
I hope there is an opensource central management project that I can be used to handle that and report the status of each job.
I found a project called chronos that runs on a top of mesos, but is there any alternative?
cron administration
cron administration
edited Apr 20 '16 at 13:07
Jeff Schaller
39.6k1054126
39.6k1054126
asked Apr 20 '16 at 13:02
Osama JaberOsama Jaber
162
162
bumped to the homepage by Community♦ 16 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 16 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here
– MelBurslan
Apr 20 '16 at 15:55
add a comment |
Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here
– MelBurslan
Apr 20 '16 at 15:55
Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here
– MelBurslan
Apr 20 '16 at 15:55
Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here
– MelBurslan
Apr 20 '16 at 15:55
add a comment |
1 Answer
1
active
oldest
votes
You can use ansible's cron module.
Here is examples for some cron jobs:
# Ensure a job that runs at 2 and 5 exists.
# Creates an entry like "0 5,2 * * ls -alh > /dev/null"
- cron:
name: "check dirs"
minute: "0"
hour: "5,2"
job: "ls -alh > /dev/null"
# Ensure an old job is no longer present. Removes any job that is prefixed
# by "#Ansible: an old job" from the crontab
- cron:
name: "an old job"
state: absent
# Creates an entry like "@reboot /some/job.sh"
- cron:
name: "a job for reboot"
special_time: reboot
job: "/some/job.sh"
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f277797%2fmanaging-cron-jobs-across-multiple-servers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use ansible's cron module.
Here is examples for some cron jobs:
# Ensure a job that runs at 2 and 5 exists.
# Creates an entry like "0 5,2 * * ls -alh > /dev/null"
- cron:
name: "check dirs"
minute: "0"
hour: "5,2"
job: "ls -alh > /dev/null"
# Ensure an old job is no longer present. Removes any job that is prefixed
# by "#Ansible: an old job" from the crontab
- cron:
name: "an old job"
state: absent
# Creates an entry like "@reboot /some/job.sh"
- cron:
name: "a job for reboot"
special_time: reboot
job: "/some/job.sh"
add a comment |
You can use ansible's cron module.
Here is examples for some cron jobs:
# Ensure a job that runs at 2 and 5 exists.
# Creates an entry like "0 5,2 * * ls -alh > /dev/null"
- cron:
name: "check dirs"
minute: "0"
hour: "5,2"
job: "ls -alh > /dev/null"
# Ensure an old job is no longer present. Removes any job that is prefixed
# by "#Ansible: an old job" from the crontab
- cron:
name: "an old job"
state: absent
# Creates an entry like "@reboot /some/job.sh"
- cron:
name: "a job for reboot"
special_time: reboot
job: "/some/job.sh"
add a comment |
You can use ansible's cron module.
Here is examples for some cron jobs:
# Ensure a job that runs at 2 and 5 exists.
# Creates an entry like "0 5,2 * * ls -alh > /dev/null"
- cron:
name: "check dirs"
minute: "0"
hour: "5,2"
job: "ls -alh > /dev/null"
# Ensure an old job is no longer present. Removes any job that is prefixed
# by "#Ansible: an old job" from the crontab
- cron:
name: "an old job"
state: absent
# Creates an entry like "@reboot /some/job.sh"
- cron:
name: "a job for reboot"
special_time: reboot
job: "/some/job.sh"
You can use ansible's cron module.
Here is examples for some cron jobs:
# Ensure a job that runs at 2 and 5 exists.
# Creates an entry like "0 5,2 * * ls -alh > /dev/null"
- cron:
name: "check dirs"
minute: "0"
hour: "5,2"
job: "ls -alh > /dev/null"
# Ensure an old job is no longer present. Removes any job that is prefixed
# by "#Ansible: an old job" from the crontab
- cron:
name: "an old job"
state: absent
# Creates an entry like "@reboot /some/job.sh"
- cron:
name: "a job for reboot"
special_time: reboot
job: "/some/job.sh"
answered Aug 22 '17 at 12:25
QuarindQuarind
614
614
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f277797%2fmanaging-cron-jobs-across-multiple-servers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here
– MelBurslan
Apr 20 '16 at 15:55