When using mod_php in Apache 2+ it is important to use the MPM-prefork version of Apache, because some PHP extensions are not thread-safe. But what about mod_rails? Can it use MPM-worker (multithreading), or does it also need MPM-prefork? I''ve read other places, that Rails is not thread-safe. Does this afflict the choice? - Carsten -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On May 7, 12:11 pm, Carsten Gehling <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> When using mod_php in Apache 2+ it is important to use the MPM-prefork > version of Apache, because some PHP extensions are not thread-safe. > > But what aboutmod_rails? Can it use MPM-worker (multithreading), or > does it also need MPM-prefork? > > I''ve read other places, that Rails is not thread-safe. Does this afflict > the choice?At the moment Phusion Passenger only supports the prefork MPM. Later versions will also support the worker MPM. Whether Ruby on Rails is thread-safe is totally irrelevant to Passenger. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hongli Lai wrote:> At the moment Phusion Passenger only supports the prefork MPM. Later > versions will also support the worker MPM. Whether Ruby on Rails is > thread-safe is totally irrelevant to Passenger.Thanks! - Carsten -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---