List Info

Thread: Deploying in Production Level (Ideas please)




Deploying in Production Level (Ideas please)
country flaguser name
United States
2007-10-14 23:46:12
Dear All,

I just started using rails.
After surfing and reading a lot I need some feedback from
you guys.
In production level what is the best configuration to use
Rails with
maximum performance. Correct me if I am wrong please.

1. Ruby on Rails, with lighttpd/mongrel, a database
2. Ruby on Rails, mod_ruby with Apache2, a database
3. Ruby on Rails, FastCGI with Apache2, a database

I know there want be any wrong answers.

regards,

J.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Deploying Rails" group.
To post to this group, send email to
rubyonrails-deploymentgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deploying in Production Level (Ideas please)
country flaguser name
United States
2007-10-15 04:28:40
Hey there,

> 1. Ruby on Rails, with lighttpd/mongrel, a database
> 2. Ruby on Rails, mod_ruby with Apache2, a database
> 3. Ruby on Rails, FastCGI with Apache2, a database

I used #3 quite a little bit before figuring out that it's
not optimal
from the following point of view.

Apache has worker threads that handle requests and serve
content. When
some static file is requested (css, js, html, ...) the
thread is
created and has a small memory footprint (some 1-5 Mb, which
is huge
compared to some lightweight servers, like nginx). When it's
PHP /
FastCGI, there has to be more memory allocated (up to 35-50
Mb in my
experience). As Apache reuses workers, over the time all
workers hold
the maximum memory and, as you can realize, make the server
choke
(constant swapping etc).

What I came up with was a cluster of mongrel workers per
application
(usually 2 is enough if you don't do anything lengthy during
the
request handling, which is bad by definition, or unless you
have an
application bombarded by requests rapidly). So mongrel +
the_server is
a great combination. You let the server serve the static
content, and
let mongrel, with almost fixed memory footprint, do the
interactive
job.

I don't name the_server as it's possible to use several
solutions in
this configuration and it's completely up to you what to go
along
with. I prefer nginx as a front end, which proxies all
requests and
gives PHP to Apache, Rails to Mongrel, while serving static
itself.

That's pretty much all to it.

- A


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Deploying Rails" group.
To post to this group, send email to
rubyonrails-deploymentgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deploying in Production Level (Ideas please)
country flaguser name
United States
2007-10-15 18:10:48
> I just started using rails.
> After surfing and reading a lot I need some feedback
from you guys.
> In production level what is the best configuration to
use Rails with
> maximum performance. Correct me if I am wrong please.
>
> 1. Ruby on Rails, with lighttpd/mongrel, a database
> 2. Ruby on Rails, mod_ruby with Apache2, a database
> 3. Ruby on Rails, FastCGI with Apache2, a database
>

4. Nginx and mongrel

Seems to also be a pretty popular choice.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Deploying Rails" group.
To post to this group, send email to
rubyonrails-deploymentgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deploying in Production Level (Ideas please)
country flaguser name
United States
2007-10-15 18:03:29
Hi ace

Using Apache 2.2x (with mod_proxy_balancer) + a pack of
mongrels seems
to be the recommended way...


On Oct 15, 12:46 pm, ace <janapr...gmail.com> wrote:
> Dear All,
>
> I just started using rails.
> After surfing and reading a lot I need some feedback
from you guys.
> In production level what is the best configuration to
use Rails with
> maximum performance. Correct me if I am wrong please.
>
> 1. Ruby on Rails, with lighttpd/mongrel, a database
> 2. Ruby on Rails, mod_ruby with Apache2, a database
> 3. Ruby on Rails, FastCGI with Apache2, a database
>
> I know there want be any wrong answers.
>
> regards,
>
> J.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Deploying Rails" group.
To post to this group, send email to
rubyonrails-deploymentgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deploying in Production Level (Ideas please)
user name
2007-10-15 23:03:25
Thanks a lot...

Please let me know others ideas as well!

regards,

J.

On 10/16/07, CCH < cchkarensoft.com.my">cchkarensoft.com.my &gt; wrote:

Hi ace

Using Apache 2.2x (with mod_proxy_balancer) + a pack of mongrels seems
to be the recommended way...


On Oct 15, 12:46 pm, ace < janapr...gmail.com">janapr...gmail.com> wrote:
>; Dear All,
>
> I just started using rails.
>; After surfing and reading a lot I need some feedback from you guys.
&gt; In production level what is the best configuration to use Rails with
> maximum performance. Correct me if I am wrong please.
&gt;
> 1. Ruby on Rails, with lighttpd/mongrel, a database
&gt; 2. Ruby on Rails, mod_ruby with Apache2, a database
> 3. Ruby on Rails, FastCGI with Apache2, a database
&gt;
> I know there want be any wrong answers.
&gt;
> regards,
&gt;
> J.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Deploying Rails"; group.
To post to this group, send email to rubyonrails-deploymentgooglegroups.com
To unsubscribe from this group, send email to rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: Deploying in Production Level (Ideas please)
user name
2007-10-17 11:37:13
nginx + mongrel_cluster is a really good solution if you don't need apache OR don't want to / can't install Apache 2.2.
&nbsp;
Apache 2.2+mongrel_cluster is great if you need to use Apache, but nginx is lighter and easier to configure (it does less stuff).
 
Stay away from mod_ruby or fastcgi. mod_ruby will run slow. ; fastcgi is just difficult to scale and tends to be a bit flakey. (On a shared host, it may be your only option though).
 
Grab the beta of "Deploying Rails Applications".&nbsp; http://www.pragprog.com/titles/fr_deploy&nbsp; Most of your questions should be answered there.

&nbsp;
On 10/15/07, Ruwan Janapriya < janapriyagmail.com">janapriyagmail.com> wrote:
Thanks a lot...

Please let me know others ideas as well!

regards,

J.


On 10/16/07, CCH <karensoft.com.my" target="_blank">cchkarensoft.com.my > wrote:

Hi ace

Using Apache 2.2x (with mod_proxy_balancer) + a pack of mongrels seems
to be the recommended way...


On Oct 15, 12:46 pm, ace <gmail.com" target="_blank">janapr...gmail.com> wrote:
>; Dear All,
>
> I just started using rails.
&gt; After surfing and reading a lot I need some feedback from you guys.
> In production level what is the best configuration to use Rails with
> maximum performance. Correct me if I am wrong please.
&gt;
> 1. Ruby on Rails, with lighttpd/mongrel, a database
&gt; 2. Ruby on Rails, mod_ruby with Apache2, a database
> 3. Ruby on Rails, FastCGI with Apache2, a database
&gt;
> I know there want be any wrong answers.
>
> regards,
&gt;
> J.






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Deploying Rails"; group.
To post to this group, send email to rubyonrails-deploymentgooglegroups.com
To unsubscribe from this group, send email to rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: Deploying in Production Level (Ideas please)
country flaguser name
United States
2007-10-18 02:18:39
Hi Brian

Does your book "Rails in Windows" contain a
chapter on deployment in
Windows ?


On Oct 18, 12:37 am, "Brian Hogan" <bpho...gmail.com> wrote:
> nginx + mongrel_cluster is a really good solution if
you don't need apache
> OR don't want to / can't install Apache 2.2.
>
> Apache 2.2+mongrel_cluster is great if you need to use
Apache, but nginx is
> lighter and easier to configure (it does less stuff).
>
> Stay away from mod_ruby or fastcgi. mod_ruby will run
slow.  fastcgi is just
> difficult to scale and tends to be a bit flakey. (On a
shared host, it may
> be your only option though).
>
> Grab the beta of "Deploying Rails
Applications".http://www.p
ragprog.com/titles/fr_deploy Most of your questions
should be
> answered there.
>
> On 10/15/07, Ruwan Janapriya <janapr...gmail.com> wrote:
>
>
>
>
>
> > Thanks a lot...
>
> > Please let me know others ideas as well!
>
> > regards,
>
> > J.
>
> > On 10/16/07, CCH <c...karensoft.com.my >
wrote:
>
> > > Hi ace
>
> > > Using Apache 2.2x (with mod_proxy_balancer) +
a pack of mongrels seems
> > > to be the recommended way...
>
> > > On Oct 15, 12:46 pm, ace <janapr...gmail.com> wrote:
> > > > Dear All,
>
> > > > I just started using rails.
> > > > After surfing and reading a lot I need
some feedback from you guys.
> > > > In production level what is the best
configuration to use Rails with
> > > > maximum performance. Correct me if I am
wrong please.
>
> > > > 1. Ruby on Rails, with lighttpd/mongrel,
a database
> > > > 2. Ruby on Rails, mod_ruby with Apache2,
a database
> > > > 3. Ruby on Rails, FastCGI with Apache2,
a database
>
> > > > I know there want be any wrong answers.
>
> > > > regards,
>
> > > > J.- Hide quoted text -
>
> - Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Deploying Rails" group.
To post to this group, send email to
rubyonrails-deploymentgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deploying in Production Level (Ideas please)
user name
2007-10-18 08:34:24
No it does not. That's covered (by be) in "Deploying Rails Applications".&nbsp; We wanted to include it in that book too but I had already made the committment to Ezra and the Prags for that chapter.
 
I am working on a new book for O'Reilly that will cover development and deployment of Rails apps on a Windows network. It's geared towards the ASP / .Net crowd.

&nbsp;
On 10/18/07, CCH < cchkarensoft.com.my">cchkarensoft.com.my> wrote:

Hi Brian

Does your book "Rails in Windows&quot; contain a chapter on deployment in
Windows ?


On Oct 18, 12:37 am, "Brian Hogan"; < bpho...gmail.com">bpho...gmail.com> wrote:
>; nginx + mongrel_cluster is a really good solution if you don't need apache
>; OR don't want to / can't install Apache 2.2.
>;
> Apache 2.2+mongrel_cluster is great if you need to use Apache, but nginx is
> lighter and easier to configure (it does less stuff).
&gt;
> Stay away from mod_ruby or fastcgi. mod_ruby will run slow. ; fastcgi is just
>; difficult to scale and tends to be a bit flakey. (On a shared host, it may
> be your only option though).
&gt;
> Grab the beta of "Deploying Rails Applications".http://www.pragprog.com/titles/fr_deploy Most of your questions should be
> answered there.
>;
> On 10/15/07, Ruwan Janapriya < janapr...gmail.com">janapr...gmail.com> wrote:
>;
>
>
>
>
> > Thanks a lot...
>;
> > Please let me know others ideas as well!
>
> > regards,
&gt;
> > J.
>
&gt; > On 10/16/07, CCH < c...karensoft.com.my">c...karensoft.com.my > wrote:
&gt;
> > > Hi ace
>
&gt; > > Using Apache 2.2x (with mod_proxy_balancer) + a pack of mongrels seems
> > > to be the recommended way...
>;
> > > On Oct 15, 12:46 pm, ace < janapr...gmail.com">janapr...gmail.com> wrote:
>; > > > Dear All,
>
> > > > I just started using rails.
>; > > > After surfing and reading a lot I need some feedback from you guys.
&gt; > > > In production level what is the best configuration to use Rails with
> > > > maximum performance. Correct me if I am wrong please.
&gt;
> > > > 1. Ruby on Rails, with lighttpd/mongrel, a database
> > > > 2. Ruby on Rails, mod_ruby with Apache2, a database
&gt; > > > 3. Ruby on Rails, FastCGI with Apache2, a database
&gt;
> > > > I know there want be any wrong answers.
>
> > > > regards,
&gt;
> > > > J.- Hide quoted text -
>
>; - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Deploying Rails"; group.
To post to this group, send email to rubyonrails-deploymentgooglegroups.com
To unsubscribe from this group, send email to rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: Deploying in Production Level (Ideas please)
country flaguser name
United States
2007-10-18 10:24:31
Hi Brian

I bought the beta PDF on 8th Oct.
Just regenerated the PDF five minutes ago and was
disappointed not to
find the chapter written by you  :-(


On Oct 18, 9:34 pm, "Brian Hogan" <bpho...gmail.com> wrote:
> No it does not. That's covered (by be) in
"Deploying Rails Applications".
> We wanted to include it in that book too but I had
already made the
> committment to Ezra and the Prags for that chapter.
>
> I am working on a new book for O'Reilly that will cover
development and
> deployment of Rails apps on a Windows network. It's
geared towards the ASP /
> .Net crowd.
>
> On 10/18/07, CCH <c...karensoft.com.my>
wrote:
>
>
>
>
>
> > Hi Brian
>
> > Does your book "Rails in Windows"
contain a chapter on deployment in
> > Windows ?
>
> > On Oct 18, 12:37 am, "Brian Hogan"
<bpho...gmail.com> wrote:
> > > nginx + mongrel_cluster is a really good
solution if you don't need
> > apache
> > > OR don't want to / can't install Apache 2.2.
>
> > > Apache 2.2+mongrel_cluster is great if you
need to use Apache, but nginx
> > is
> > > lighter and easier to configure (it does less
stuff).
>
> > > Stay away from mod_ruby or fastcgi. mod_ruby
will run slow.  fastcgi is
> > just
> > > difficult to scale and tends to be a bit
flakey. (On a shared host, it
> > may
> > > be your only option though).
>
> > > Grab the beta of "Deploying Rails
> > Applications".http://w
ww.pragprog.com/titles/fr_deployMost of your
> > questions should be
> > > answered there.
>
> > > On 10/15/07, Ruwan Janapriya
<janapr...gmail.com> wrote:
>
> > > > Thanks a lot...
>
> > > > Please let me know others ideas as
well!
>
> > > > regards,
>
> > > > J.
>
> > > > On 10/16/07, CCH <c...karensoft.com.my > wrote:
>
> > > > > Hi ace
>
> > > > > Using Apache 2.2x (with
mod_proxy_balancer) + a pack of mongrels
> > seems
> > > > > to be the recommended way...
>
> > > > > On Oct 15, 12:46 pm, ace
<janapr...gmail.com> wrote:
> > > > > > Dear All,
>
> > > > > > I just started using rails.
> > > > > > After surfing and reading a
lot I need some feedback from you
> > guys.
> > > > > > In production level what is
the best configuration to use Rails
> > with
> > > > > > maximum performance. Correct
me if I am wrong please.
>
> > > > > > 1. Ruby on Rails, with
lighttpd/mongrel, a database
> > > > > > 2. Ruby on Rails, mod_ruby
with Apache2, a database
> > > > > > 3. Ruby on Rails, FastCGI with
Apache2, a database
>
> > > > > > I know there want be any wrong
answers.
>
> > > > > > regards,
>
> > > > > > J.- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Deploying Rails" group.
To post to this group, send email to
rubyonrails-deploymentgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deploying in Production Level (Ideas please)
user name
2007-10-18 10:29:18
I've been assured it's coming... just don't know when.

On 10/18/07, CCH < cchkarensoft.com.my">cchkarensoft.com.my> wrote:

Hi Brian

I bought the beta PDF on 8th Oct.
Just regenerated the PDF five minutes ago and was disappointed not to
find the chapter written by you &nbsp;:-(


On Oct 18, 9:34 pm, "Brian Hogan"; < bpho...gmail.com">bpho...gmail.com> wrote:
>; No it does not. That's covered (by be) in "Deploying Rails Applications".
> We wanted to include it in that book too but I had already made the
> committment to Ezra and the Prags for that chapter.
&gt;
> I am working on a new book for O'Reilly that will cover development and
> deployment of Rails apps on a Windows network. It's geared towards the ASP /
> .Net crowd.
>;
> On 10/18/07, CCH < c...karensoft.com.my">c...karensoft.com.my> wrote:
&gt;
>
&gt;
>
>;
> > Hi Brian
>
> > Does your book "Rails in Windows&quot; contain a chapter on deployment in
> > Windows ?
>
>; > On Oct 18, 12:37 am, "Brian Hogan"; < bpho...gmail.com">bpho...gmail.com> wrote:
>; > > nginx + mongrel_cluster is a really good solution if you don't need
> > apache
>; > > OR don't want to / can't install Apache 2.2.
>;
> > > Apache 2.2+mongrel_cluster is great if you need to use Apache, but nginx
> > is
> > > lighter and easier to configure (it does less stuff).
&gt;
> > > Stay away from mod_ruby or fastcgi. mod_ruby will run slow. ; fastcgi is
> > just
> > > difficult to scale and tends to be a bit flakey. (On a shared host, it
> > may
> > > be your only option though).
&gt;
> > > Grab the beta of "Deploying Rails
&gt; > Applications".http://www.pragprog.com/titles/fr_deployMost of your
> > questions should be
> > > answered there.
>;
> > > On 10/15/07, Ruwan Janapriya < janapr...gmail.com"> janapr...gmail.com> wrote:
>;
> > > > Thanks a lot...
>;
> > > > Please let me know others ideas as well!
>
> > > > regards,
&gt;
> > > > J.
>
> > > > On 10/16/07, CCH < c...karensoft.com.my">c...karensoft.com.my > wrote:
>;
> > > > > Hi ace
>
&gt; > > > > Using Apache 2.2x (with mod_proxy_balancer) + a pack of mongrels
&gt; > seems
> > > > > to be the recommended way...
>;
> > > > > On Oct 15, 12:46 pm, ace < janapr...gmail.com"> janapr...gmail.com> wrote:
>; > > > > > Dear All,
>
> > > > > > I just started using rails.
>; > > > > > After surfing and reading a lot I need some feedback from you
> > guys.
> > > > > > In production level what is the best configuration to use Rails
> > with
> > > > > > maximum performance. Correct me if I am wrong please.
>
> > > > > > 1. Ruby on Rails, with lighttpd/mongrel, a database
&gt; > > > > > 2. Ruby on Rails, mod_ruby with Apache2, a database
&gt; > > > > > 3. Ruby on Rails, FastCGI with Apache2, a database
>
> > > > > > I know there want be any wrong answers.
&gt;
> > > > > > regards,
&gt;
> > > > > > J.- Hide quoted text -
>
>; > > - Show quoted text -- Hide quoted text -
>
&gt; - Show quoted text -






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Deploying Rails"; group.
To post to this group, send email to rubyonrails-deploymentgooglegroups.com
To unsubscribe from this group, send email to rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-10] [11-12]

about | contact  Other archives ( Real Estate discussion Medical topics )