I haven't fully tested it yet but this is how I'm currently testing TS's Delayed Delta functionality:
http://gist.github.com/1003601 I basically wrote an init.d script that starts and stops 'rake ts:dd' and stores the PID that is then monitored, along with some other automated testing. Please take a look, especially the bottom of this file: https://gist.github.com/1003601#file_ar_sphinx_mon.sh On May 31, 7:10 am, Pat Allan <[email protected]> wrote: > Hi Ryan > > I've not done this specifically with ts-delayed-delta, but I do have Monit > monitoring delayed job for me as part of the Flying Sphinx setup: > > check process delayed_job > with pidfile "/var/www/oedipus/tmp/pids/delayed_job.pid" > start program = "/bin/su -c '/usr/bin/env RAILS_ENV=production > /var/www/oedipus/script/delayed_job start' - sphinx" > stop program = "/bin/su -c '/usr/bin/env RAILS_ENV=production > /var/www/oedipus/script/delayed_job stop' - sphinx" > > This is for Rails 3 - so it may not work so well with older Delayed Job > versions, but it shouldn't matter from a TS perspective whether the jobs are > managed through the ts rake task or script/delayed_job. I'd personally opt > for script/delayed_job, given that properly daemonises the worker process. > > Cheers > > -- > Pat > > On 31/05/2011, at 1:44 AM, Code Daemon wrote: > > > > > > > > > I'm trying to monitor rake ts:dd using monit. All my other jobs have a > > PID file that I can specify in monit's config. What's the best way to > > monitor this rake ts:dd? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Thinking Sphinx" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/thinking-sphinx?hl=en. -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
