[Nitro] Nitro support for Swiftiply
George Moschovitis
george.moschovitis at gmail.com
Tue May 15 12:11:57 EDT 2007
Hello Kirk,
please excuse my ignorance, but what exactly is Switftiply? ;-)
-g.
On 5/15/07, Kirk Haines <wyhaines at gmail.com> wrote:
>
> I am wondering what the best approach is for Swiftiply to offer
> support for Nitro?
>
> Swiftiply is packed with a couple hotpatches to Mongrel which, when
> required, provide either a Mongrel that runs in an evented mode
> instead of a threaded mode, or a Mongrel that runs as a full Swiftiply
> client.
>
> These are swiftcore/evented_mongrel.rb and
> swiftcore/swiftiplied_mongrel.rb.
>
> With Merb, Ezra Z. just builtin the following:
>
> if ENV['SWIFT']
> require 'swiftcore/swiftiplied_mongrel'
> elsif ENV['EVENT']
> require 'swiftcore/evented_mongrel'
> else
> require 'mongrel'
> end
>
> He also provided a mongrel_rails script that does the same thing.
>
> At the simplest, someone could just require evented_mongrel or
> swiftiplied_mongrel in their code, and it should work. The only
> concern there has to do with the --cluster option. When running with
> swiftiply, multiple processes should all be started on the _same_
> port, since swiftiplied_mongrel transparently turns mongrel into a
> client of Swiftiply.
>
> So, what is the best way for me to support Nitro?
>
>
> Kirk Haines
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
--
http://georgeandstella.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070515/66aa1d5f/attachment.html
More information about the Nitro-general
mailing list