Setups two rails app in different location.
BJ Clark
bjclark at scidept.com
Thu Dec 13 21:20:47 MSK 2007
Francisco,
How much ram is available on the server for your mongrel instances?
I've found that each mongrel takes at least 90mb of ram, so 8
instances could easily be maxing out memory on your box, which would
cause things to slow down dramatically.
-----
BJ Clark
the science department
bjclark at scidept.com
www.scidept.com
On Dec 13, 2007, at 10:53 AM, Francisco Valladolid wrote:
> Thank you for your suggest.
>
> No my two rails instances are working fine, the only problem is:
>
> The second instance is very slow, maybe a need do some tuning in
> nginx ?
>
> Regards.
>
> On Dec 12, 2007 10:56 PM, Eden Li <eden at mojiti.com> wrote:
> you need to setup another upstream block which specifies the ports for
> second batch of mongrels and then proxy to that.
>
> eg
>
> upstream mongrel_cluster_2 {
> server 127.0.0.1:4000;
> server 127.0.0.1:4001;
> server 127.0.0.1:4002;
> server 127.0.0.1:4003;
> }
>
> ...
>
> proxy_pass http://mongrel_cluster_2
>
> make sure your 2nd cluster config is setup to use different ports from
> your first mongrel cluster
>
> side note: you seem to have some references to fcgi and apache in your
> config -- you might want to clean those out...
>
> On 12/13/07, Francisco Valladolid < ficovh at gmail.com> wrote:
> > Hi.
> >
> > I have two different rails app under the same server, using the
> same IP.
> >
> > How can do it? my primary web site is working correctly but the
> second one
> > no.
> >
> > this is my config.
> >
> >
> >
> > --
> > Francisco Valladolid H.
> > -- http://bsdguy.net - Perl, [Open-Net] BSD fan. --
> >
>
>
>
>
> --
> Francisco Valladolid H.
> -- http://bsdguy.net - Perl, [Open-Net] BSD fan. --
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20071213/bd34821e/attachment.html>
More information about the nginx
mailing list