[Nitro] SCGI

Timothy Goddard interfecus at gmail.com
Tue Oct 3 17:47:20 EDT 2006


How about installing the NTP client? It won't change this setting but it will 
keep your clock correct all the time. If your timezone is set up correctly 
then your time will always remain accurate to within a millisecond.

On Wednesday 04 October 2006 05:24, George Moschovitis wrote:
> Hm...
>
> I made a terrible mistake in this post. Please replace every
> occurrence of scgi with mongrel.
>
> -g.
>
> On 10/2/06, George Moschovitis <george.moschovitis at gmail.com> wrote:
> > Dear devs,
> >
> > lately I have made some changes in the way one starts and manages
> > Nitro servers. Let me explain in this email how I use nitro with the
> > scgi adapter.
> >
> > The setup goes like this. There is one front web server (lighttpd or
> > apache or something similar) that handles static content and acts as a
> > proxy for dynamic content. Attached to this email is an example
> > lhttpd.conf file to demonstrate  the proxy setup.
> >
> > Behind this server runs a cluster of nitro servers that handle the
> > dynamic request. As an example, to start a cluster of 2 nitro servers
> > using the scgi adapter, go to the application directory and use the
> > following:
> >
> > nitro --live --scgi --daemon --cluster 2
> >
> > for more details consult the file nitro/bin/nitro in the distribution.
> >
> > The nitro command uses the CONFIGURATION_MODE env variable, so for
> > example you can set
> >
> > export CONFIGURATION_MODE=debug
> >
> > in your development server and
> >
> > export CONFIGURATION_MODE=live
> >
> > in your production server.
> >
> > you can also set
> >
> > Nitro.adapter = :webrick
> >
> > in conf/debug.rb
> >
> > and
> >
> > Nitro.adapter = :scgi
> >
> > in conf/live.rb
> >
> > etc, etc
> >
> > Please notice that the nitro command will automatically try to execute
> > the state.rb file in the same directory. This file is typically
> > responsible for starting distributed state servers (for example
> > sessions, global variables etc etc) you may need in process models
> > like scgi. An example state.rb is also attached.
> >
> > To stop the server you can use
> >
> > nitro stop
> >
> > or
> >
> > nitro kill (this also kills the state server)
> >
> > There are some bad news though. There seem to be some slowdowns if the
> > nitro server runs behind a proxy. I will investigate and fix it, but
> > If anyone has any idea please let me know. I have also contacted Zed
> > about this, perhaps he will be able to help.
> >
> > If you have more questions, please let me know.
> >
> > regards,
> > George.
> >
> >
> >
> > --
> > http://www.gmosx.com
> > http://www.nitroproject.org


More information about the Nitro-general mailing list