ruote + jruby + windows => multi workers ?

9 views
Skip to first unread message

fred68

unread,
Feb 1, 2011, 3:37:56 AM2/1/11
to ruote
Hello,

I would like to replace our existing and complex integration layer by
ruote and ruote-kit. This layer is written in java and the messaging
system is currently JMS. It has to run on the windows platform because
one integration step is to watch the presence of Excel files that
users are posting in specifics folders.

I have checked the ruote-ampq code and I am pretty sure I will be able
to reproduce the logic using JMS instead of ampq but I have one
concern regarding the number of workers I can run simultanuously on
windows and jruby.

In the configuration documentation (http://ruote.rubyforge.org/
configuration.html), it has been specified that multiple workers for
Ruote::FsStorage on windows is not supported. Is JRuby making a
difference ?

My question is how is it possible then to use an external receiver and
a local sender because two workers have to run on the same storage ?

Many thanks


Frédéric

John Mettraux

unread,
Feb 1, 2011, 6:43:23 AM2/1/11
to openwfe...@googlegroups.com

On Tue, Feb 01, 2011 at 12:37:56AM -0800, fred68 wrote:
>
> In the configuration documentation (http://ruote.rubyforge.org/
> configuration.html), it has been specified that multiple workers for
> Ruote::FsStorage on windows is not supported. Is JRuby making a
> difference ?

Hello Fr�d�ric,

unfortunately JRuby doesn't help. It's simply the locking system used that is not available on Windows.

http://www.ruby-doc.org/core/classes/File.html#M000040

> My question is how is it possible then to use an external receiver and
> a local sender because two workers have to run on the same storage ?

You could use ruote-redis or ruote-dm, they are OK with multiple workers (I don't know how they fare on Windows and/or JRuby though).

Depending on your expected load, 1 worker + the fs storage might be sufficient.


Best regards,

--
John Mettraux - http://jmettraux.wordpress.com

fred68

unread,
Feb 1, 2011, 10:42:09 AM2/1/11
to ruote
Hello John,

Thanks for the info. The load will be limited also I will follow your
advice.

Because I am running ruote-kit can I add the receiver startup in the
config.ru in order to share the worker ? Or do you recommand another
approach ?

Thanks

Best regards,

Fred

John Mettraux

unread,
Feb 1, 2011, 6:42:19 PM2/1/11
to openwfe...@googlegroups.com

On Tue, Feb 01, 2011 at 07:42:09AM -0800, fred68 wrote:
>
> Because I am running ruote-kit can I add the receiver startup in the
> config.ru in order to share the worker ? Or do you recommand another
> approach ?

Hello Fr�d�ric,

in the config.ru it's OK. If it's getting big, move it to a separate file and require it from your config.ru

We haven't worked yet on any "conventions" for placing participants and receivers along a bare ruote-kit. Maybe that should change at some point, but it's easier to let people have fun.

Reply all
Reply to author
Forward
0 new messages