[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

need Rails advice

Chris Newman

3/23/2005 10:01:00 PM

I have inherited an existing intranet web server that runs Apache 1.3 on
Solaris 8. It is a bit limited so I am putting together a development web
server to test various Apache modules, Content Management Systems, etc. The
new server will run Apache 2.0 on Solaris 8. I was interested in trying Ruby
and perhaps even Ruby on Rails and I have a couple of questions...

Should I use mod_ruby or fastcgi?
Will there be a significant performance difference depending on which I
choose?
Will Rails work with both?

Thanks in advance for any advice,

Chris
4 Answers

Shalev NessAiver

3/23/2005 10:07:00 PM

0

While I'm still pretty new to the whole deal, here's what I have:

Rails will run with mod_ruby or fastcgi.
The best performance seems to be with Apache lighthttpd and FastCGI.

That setup also seems to be the one most preferred (for good reason).

-Shalev


On Mar 23, 2005, at 5:01 PM, Chris Newman wrote:

> I have inherited an existing intranet web server that runs Apache 1.3
> on
> Solaris 8. It is a bit limited so I am putting together a development
> web
> server to test various Apache modules, Content Management Systems,
> etc. The
> new server will run Apache 2.0 on Solaris 8. I was interested in
> trying Ruby
> and perhaps even Ruby on Rails and I have a couple of questions...
>
> Should I use mod_ruby or fastcgi?
> Will there be a significant performance difference depending on which I
> choose?
> Will Rails work with both?
>
> Thanks in advance for any advice,
>
> Chris



pat eyler

3/23/2005 10:07:00 PM

0

This is probably better asked over on the Rails mailing list, but here goes:


On Thu, 24 Mar 2005 07:01:22 +0900, Chris Newman
<Chris.Newman@dalsemi.com> wrote:
> I have inherited an existing intranet web server that runs Apache 1.3 on
> Solaris 8. It is a bit limited so I am putting together a development web
> server to test various Apache modules, Content Management Systems, etc. The
> new server will run Apache 2.0 on Solaris 8. I was interested in trying Ruby
> and perhaps even Ruby on Rails and I have a couple of questions...
>
> Should I use mod_ruby or fastcgi?

fastcgi

> Will there be a significant performance difference depending on which I
> choose?
> Will Rails work with both?

Rails runs with both, but there are problems with mod_ruby that have
caused the apache using segments of the Rails community to settle on
fastcgi

>
> Thanks in advance for any advice,
>
> Chris
>
>


--
thanks,
-pate
-------------------------
ParseTree is a little brown stinky ferret that digs down a hole and
violently rips the AST away from the warm bosom of ruby. In other
words, we cheat, they don't.


Dick Davies

3/23/2005 10:09:00 PM

0

* Chris Newman <Chris.Newman@dalsemi.com> [0301 22:01]:
> I have inherited an existing intranet web server that runs Apache 1.3 on
> Solaris 8. It is a bit limited so I am putting together a development web
> server to test various Apache modules, Content Management Systems, etc. The
> new server will run Apache 2.0 on Solaris 8. I was interested in trying Ruby
> and perhaps even Ruby on Rails and I have a couple of questions...
>
> Should I use mod_ruby or fastcgi?

fastcgi. can't think of any compelling reason to use mod_ruby for rails
(it has some nice features by virtue of being in-process, but nothing that
rails uses).

> Will there be a significant performance difference depending on which I
> choose?

yes, fastcgi is fast. See, it's right there in the name :)

> Will Rails work with both?

Yes. and webrick too, if you want to avoid tweaking anything else.

> Thanks in advance for any advice,

Have a look at the rails list when you get a minute, especially if you
need more detail.

--
'I should have been a plumber.'
-- Albert Einstein
Rasputin :: Jack of All Trades - Master of Nuns


Tobias Luetke

3/23/2005 10:30:00 PM

0

Mod_ruby, while supported, is not much of an option.

There are the fundamental problems with its architecture like
in-process ruby interpreter which for a rails application means you
will run around with 20mb baggage per apache worker process. Apache
loves to start a lot of worker processes so you have to take this into
account when buying ram.

However thats only the small reason against it, the big is that you
can only run one rails application on your apache installation since
the ruby processes are shared.

Fastcgi solves all this, it creates a pool of rails applications which
handle the requests coming to it and you can dictate the maximum size.
Fastcgi is also a whole lot faster.

I recommend lighttpd as web server.


On Thu, 24 Mar 2005 07:01:22 +0900, Chris Newman
<Chris.Newman@dalsemi.com> wrote:
> I have inherited an existing intranet web server that runs Apache 1.3 on
> Solaris 8. It is a bit limited so I am putting together a development web
> server to test various Apache modules, Content Management Systems, etc. The
> new server will run Apache 2.0 on Solaris 8. I was interested in trying Ruby
> and perhaps even Ruby on Rails and I have a couple of questions...
>
> Should I use mod_ruby or fastcgi?
> Will there be a significant performance difference depending on which I
> choose?
> Will Rails work with both?
>
> Thanks in advance for any advice,
>
> Chris
>
>


--
Tobi
http://www.sn... - Snowboards that don't suck
http://www.h... - Open source book authoring
http://blog.le... - Technical weblog