Welcome! Log In Create A New Profile

Advanced

Re: redmine + rails + nginx

Guy Naor
April 29, 2009 11:54AM
Hi,

Edho P Arief wrote:
> On Wed, Apr 29, 2009 at 12:41 AM, Guy Naor wrote:
>
>> Hi,
>>
>> I didn't say it's better - it's EASIER. The reason it's easier is that the
>> mod_rails module is the one that actually manages the backend. That means
>> two major things:
>>
>> 1. You don't need to use mongrel_cluster or a FastCGI launcher
>> 2. When the app die for some reason, the module will handle the relaunching
>> for you. This eliminate the need for something like monit or a fastcgi
>> spawner process.
>>
>>
>
> so basically it's like php-fpm? (and mongrel_cluster is spawn-fgi/php)
>
It's similar, but the difference is, it's based not on checking
processes and such, but actually managing child processes of the
spawner. When using FastCGI with Rails (I used to do that with lighttpd)
we had the spinner and spawner scripts that checked on the running
processes and relaunched them if they were dead. But mod_rails actually
launches and kills workers based on timeouts and request logs.. It's
smarter in the way it works, and using the global queue option you can
get better predictability with apps having long requests.

But I still use mongrels in production, launching and controlling them
with monit. I still need to test more on the working of mod_rails to
know for sure it'll meet my production requirements. That's why I said
it's EASIER but didn't say it's better.

Bye,

Guy.
Subject Author Posted

redmine + rails + nginx

aurora April 28, 2009 04:12AM

Re: redmine + rails + nginx

edogawaconan April 28, 2009 11:00AM

Re: redmine + rails + nginx

Guy Naor April 28, 2009 11:36AM

Re: redmine + rails + nginx

edogawaconan April 28, 2009 01:21PM

Re: redmine + rails + nginx

Guy Naor April 28, 2009 01:41PM

Re: redmine + rails + nginx

edogawaconan April 29, 2009 02:20AM

Re: redmine + rails + nginx

Guy Naor April 29, 2009 11:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready