mongrel-users  

[Mongrel] Rails, ActionController::Base.allow_concurrency and mongrel

François SIMOND
Sun, 28 May 2006 09:51:50 -0700

Hello all,

Are you aware of the rails ActionController::Base.allow_concurrency option ?
If this option is true, rails is able to process simultaneous multiples
actions.

It appears that rails is thread-safe (if the user application is), and
that this option is mostly unknown.
Webrick take care of this option in rails-1.1.2/lib/webrick_server.rb at
line 80 :
    REQUEST_MUTEX.lock unless ActionController::Base.allow_concurrency

I think that even if using multi-threading in mongrel would not increase
performance, it could dramatically decreases memory requirements for
rails apps (usefull for shared hosting) and makes configuration easyer
(proxy becomes optionnal)

Thanks :)

-- 
 François SIMOND
_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users