We're using cron to manage our backups and other jobs in multiple locations. Using chef to populate files in cron.daily, cron.hourly, etc has worked pretty well for us so far, but with some issues:
Optimally, I'd like a web-based frontend that I can use to see this information, either as an extension on cron or a complete replacement.
I can solve the above problems myself with a bit of scripting, but I'm sure that this is a problem that others have solved already.
Note that I acknowledge that this is a completely separate issue from verifying the backups after they've been completed.
I think https://github.com/tobi/delayed_job is a straightforward and Rails friendly way of doing it. I set it up once but went back to cron, as it was simpler for what we wanted.
I use delayed job to solve many of the issues you mention, but it
fails your multiple locations requirement.
I have simple cron tasks that pop jobs(including backups) onto the
delayed job queue.
Hoptoad is setup to track job errors and a simple rails controller
queries the delayed_jobs table to report failed, running and upcoming
jobs.
However, there's no support for multiple queues so you won't easily be
able to backup multiple machines.
James
* whenever gem to provide a nice interface over the top of cron:
https://github.com/javan/whenever
* backup gem that's super flexible/configurable for defining backups (if backups are the focus - sounds like there's other elements as well):
https://github.com/meskyanichi/backup
* free account on SendGrid as an SMTP server for < 200 emails/day:
http://sendgrid.com/
--
Pat
> --
> You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-...@googlegroups.com.
> To unsubscribe from this group, send email to rails-oceani...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To post to this group, send email to rails-...@googlegroups.com.
To unsubscribe from this group, send email to rails-oceani...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Nope, but I haven't really looked very hard. If you find one, please
let us know as my homebrew dashboard is pretty damn utilitarian.
James
And the gem resque-scheduler:
https://github.com/bvandenbos/resque-scheduler
to schedule things to be added to queues at certain times.
There's a good blog post on it:
http://www.perfectline.ee/blog/cron-tasks-for-your-rails-application-with-resque
Cheers,
Chris
You can scheduled jobs using crontab syntax in a yml file, and/or from
code via Resque.enqueue(JobClass) or
Resque.enqueue_at(30.seconds.from_now, JobClass).
Jobs are just Ruby classes with a perform method, so you can run them
from the Rails console if you like. The web UI allows you to see
failed jobs, and retry them (very handy if a job takes parameters, so
you want to re-run *that* job).
Robert
--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To post to this group, send email to rails-...@googlegroups.com.
To unsubscribe from this group, send email to rails-oceani...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
-- ---- Andrew Boag - Director Catalyst IT andre...@catalyst-au.net mob: +61 421 528 125 ddi: +61 2 8002 1758 www.catalyst-au.net
We haven't used monit, but it looks to me like it's more of a solution that will try to "solve" the failure i.e. restart apache/postgres if the system goes away.
This is fine but what if _this_ (i.e. the monit script) process fails?
We haven't used monit, but it looks to me like it's more of a solution that will try to "solve" the failure i.e. restart apache/postgres if the system goes away.
I think the main purpose of monit is to monitor and take an action. The action can be "solving" the issues as well as sending notifications and waking up stuff.
This is fine but what if _this_ (i.e. the monit script) process fails?
It looks like guys already thought about that. So it it should be handled pretty well.
I think it has relevance to Ruby, at least I know I like to monitor my delayed_jobs/redis/sphinx using something (usually Monit).
I originally asked because I was curious how others were handling doing the same thing.
You've mentioned a couple of times, "what happens if monit/init falls over" how do you manage Nagios falling over? Do you have redundant systems or just notice if an SMS hasn't come in for a while?