Preventing multiple schedulers when running multiple Unicorn works

119 views
Skip to first unread message

Sharagoz

unread,
Feb 16, 2012, 10:49:37 AM2/16/12
to Rufus Ruby
Hi

I have an app that is served through Unicorn with 4 unicorn workers.
This causes 4 schedulers to be created. Is there a good way of making
sure only one scheduler is started?

John Mettraux

unread,
Feb 16, 2012, 10:59:15 AM2/16/12
to rufus...@googlegroups.com

Hello,

you should look at the Unicorn documentation to see if there is documentation
about that.

Else your fastest scheduler could touch a file (name ending with the pid of
the master unicorn?) and later scheduler, finding the file already created
wouldn't start.

It's not too hard to do and yields lots of things to learn.


Best regards,

--
John Mettraux - http://lambda.io/processi

Sharagoz

unread,
Feb 16, 2012, 1:13:57 PM2/16/12
to Rufus Ruby
OK, thanks for the quick response
Reply all
Reply to author
Forward
0 new messages