« Return to Thread: JRuby on Rails - Deployment Options

Re: JRuby on Rails - Deployment Options

by Joseph Athman :: Rate this Message:

Reply to Author | View in Thread

I'm not really sure on specific numbers but I think the biggest advantage will be with memory usage.  If you do not go with the threaded mode then you will either need to have multiple servers and/or multiple rails instances per server.  If I were you I would try out the glassfish gem and turn on the threaded mode in rails and see what kind of performance and memory footprint you have.  I'm pretty sure the GF gem will configure itself to only use one Rails instance if it detects multi-threaded mode has been enabled.

If you go with any of the app server only options to start you can always configure apache to front them later if the need arises.  Unless you know apache well and setting that part up is trivial.  Being a Java person my whole life I wasn't really comfortable dealing with Apache right from the start.  Good luck.

Joe

On Sun, Jun 21, 2009 at 4:52 PM, Matthew Winter <wintermi@...> wrote:
Hi,

Agreed, but I would prefer to deploy with an option that could scale if and when the user numbers require it.

I am using Rails 2.3.2 so threading is an option. Do you know if anyone has published any figures comparing threaded and non-threaded on a JRuby implementation?

Thanks.

Regards
Matthew Winter



On 22/06/2009, at 6:27 AM, Joseph Athman wrote:

I think you should try to go with the most simple solution you can that will handle the load your site has.  There's no sense in making a load balanced clustered server environment with Apache/Nginx and app servers if you have 10 users.  All it does is add complication without any perceivable benefit.  We have been using the glassfish gem and it works great.  Dead simple and handles a nice load as well.  If you are using a new version of Rails and can turn on multithreaded mode you will get some nice throughput without as big of a memory footprint.

Joe


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email



 « Return to Thread: JRuby on Rails - Deployment Options