<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Francisco,<div>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.<br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><div>-----</div><div>BJ Clark</div><div>the science department</div><div><a href="mailto:bjclark@scidept.com">bjclark@scidept.com</a></div><div><a href="http://www.scidept.com">www.scidept.com</a></div></div><br class="Apple-interchange-newline"></span> </div><br><div><div>On Dec 13, 2007, at 10:53 AM, Francisco Valladolid wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thank you for your suggest.<br><br>No my two rails instances are working fine, the only problem is:<br><br>The second instance is very slow, maybe a need do some tuning in nginx ?<br><br>Regards.<br><br><div class="gmail_quote"> On Dec 12, 2007 10:56 PM, Eden Li &lt;<a href="mailto:eden@mojiti.com">eden@mojiti.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> you need to setup another upstream block which specifies the ports for<br>second batch of mongrels and then proxy to that.<br><br>eg<br><br> &nbsp;upstream mongrel_cluster_2 {<br> &nbsp; &nbsp;server <a href="http://127.0.0.1:4000" target="_blank"> 127.0.0.1:4000</a>;<br> &nbsp; &nbsp;server <a href="http://127.0.0.1:4001" target="_blank">127.0.0.1:4001</a>;<br> &nbsp; &nbsp;server <a href="http://127.0.0.1:4002" target="_blank">127.0.0.1:4002</a>;<br> &nbsp; &nbsp;server <a href="http://127.0.0.1:4003" target="_blank"> 127.0.0.1:4003</a>;<br> &nbsp;}<br><br>...<br><br>proxy_pass <a href="http://mongrel_cluster_2" target="_blank">http://mongrel_cluster_2</a><br><br>make sure your 2nd cluster config is setup to use different ports from<br>your first mongrel cluster <br><br>side note: you seem to have some references to fcgi and apache in your<br>config -- you might want to clean those out...<br><div><div></div><div class="Wj3C7c"><br>On 12/13/07, Francisco Valladolid &lt;<a href="mailto:ficovh@gmail.com"> ficovh@gmail.com</a>&gt; wrote:<br>&gt; Hi.<br>&gt;<br>&gt; I have two different rails app under the same server, using the same IP.<br>&gt;<br>&gt; How can do it? my primary web site is working correctly but the second one <br>&gt; no.<br>&gt;<br>&gt; this is my config.<br>&gt;<br>&gt;<br>&gt;<br>&gt; &nbsp;--<br>&gt; Francisco Valladolid H.<br>&gt; &nbsp;-- <a href="http://bsdguy.net" target="_blank">http://bsdguy.net</a> - Perl, [Open-Net] BSD fan. -- <br>&gt;<br><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Francisco Valladolid H.<br> -- <a href="http://bsdguy.net">http://bsdguy.net</a> - Perl, [Open-Net] BSD fan. --</blockquote></div><br></div></body></html>