Re: need help with enginx configuration with Pylons.

2011-04-25 Thread Gopalakrishnan S
I use 4 instances of paste with different local ports and using nginx
to serve the static files and do the load balancing between the paste
instances. Even-though I use single server, the performance difference
is a lot when you run multiple instances of paste instances it may due
to Python's lack of multi-core CPU support and GIL.

--
Krish

On Apr 25, 12:50 am, Krishnakant Mane  wrote:
> Thanks Michael.
> So will just reverce proxy help me utilise the performance bennifits
> that nginx offers?
> Afterall this kind of setup will only help to proxy requests to python
> paist.  But is paist itself good enough to handle loads of requests?
> I herd that fastcgi does some event based requesting and lends the work
> to some worker processes?
> is that right or this will any ways happen with nginx using reverce proxy?
>
> Happy hacking.
> Krishnakant.
>
> On 25/04/11 00:41, Michael Merickel wrote:
>
>
>
>
>
>
>
> > I'm not sure what the pros/cons of fastcgi are, but I use nginx in
> > production as a reverse proxy on several projects. This cookbook is
> > for pyramid, but the configuration is framework-agnostic:
>
> >http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/deploymen...
>
> > Obviously your INI file will be slightly different for pylons, but the
> > nginx configuration would remain the same.
>
> > Michael
>
> > On Sun, Apr 24, 2011 at 12:24 PM, Krishnakant Mane  > > wrote:
>
> >     Hello all.
> >     Can some one help me out with a small problem?
> >     if any one has ever deployed an application in pylons 0.9.7 using
> >     nginx 1.0 or lower, then please give me an example of nginx.conf
> >     file and any other files I need to change.
> >     My application name is gnukhata and I will highly appreciate if
> >     some one could also share off list a production.ini file.
> >     Right now I am trying to configure the file as given
> >     
> > at,http://www.rightbrainnetworks.com/blog/deploying-a-pylons-app-to-prod...
>
> >     I did as exactly mentioned in this tutorial part one for nginx.conf.
> >     I have the lines changed exactly as in the example there.
> >     Can some one tell me if that's the correct way to do?
> >     happy hacking.
> >     Krishnakant.
>
> >     --
> >     You received this message because you are subscribed to the Google
> >     Groups "pylons-discuss" group.
> >     To post to this group, send email to
> >     pylons-discuss@googlegroups.com
> >     .
> >     To unsubscribe from this group, send email to
> >     pylons-discuss+unsubscr...@googlegroups.com
> >     .
> >     For more options, visit this group at
> >    http://groups.google.com/group/pylons-discuss?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "pylons-discuss" group.
> > To post to this group, send email to pylons-discuss@googlegroups.com.
> > To unsubscribe from this group, send email to
> > pylons-discuss+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/pylons-discuss?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: need help with enginx configuration with Pylons.

2011-04-24 Thread Michael Merickel
The paste http server is capable of running on its own and handling traffic.
This setup just uses nginx as a load balancer. I'm really not familiar with
how fastcgi interacts with WSGI apps, someone else will have to answer that
for you.

Michael


On Sun, Apr 24, 2011 at 2:50 PM, Krishnakant Mane  wrote:

>  Thanks Michael.
> So will just reverce proxy help me utilise the performance bennifits that
> nginx offers?
> Afterall this kind of setup will only help to proxy requests to python
> paist.  But is paist itself good enough to handle loads of requests?
> I herd that fastcgi does some event based requesting and lends the work to
> some worker processes?
> is that right or this will any ways happen with nginx using reverce proxy?
>
> Happy hacking.
> Krishnakant.
>
>
> On 25/04/11 00:41, Michael Merickel wrote:
>
> I'm not sure what the pros/cons of fastcgi are, but I use nginx in
> production as a reverse proxy on several projects. This cookbook is for
> pyramid, but the configuration is framework-agnostic:
>
>
> http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/deployment.html#nginx-paster-supervisord
>
>  Obviously your INI file will be slightly different for pylons, but the
> nginx configuration would remain the same.
>
> Michael
>
>
> On Sun, Apr 24, 2011 at 12:24 PM, Krishnakant Mane wrote:
>
>> Hello all.
>> Can some one help me out with a small problem?
>> if any one has ever deployed an application in pylons 0.9.7 using nginx
>> 1.0 or lower, then please give me an example of nginx.conf file and any
>> other files I need to change.
>> My application name is gnukhata and I will highly appreciate if some one
>> could also share off list a production.ini file.
>> Right now I am trying to configure the file as given at,
>> http://www.rightbrainnetworks.com/blog/deploying-a-pylons-app-to-production-step-by-step-part-1-of-2/
>>
>> I did as exactly mentioned in this tutorial part one for nginx.conf.
>> I have the lines changed exactly as in the example there.
>> Can some one tell me if that's the correct way to do?
>> happy hacking.
>> Krishnakant.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pylons-discuss" group.
>> To post to this group, send email to pylons-discuss@googlegroups.com.
>> To unsubscribe from this group, send email to
>> pylons-discuss+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/pylons-discuss?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-discuss+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: need help with enginx configuration with Pylons.

2011-04-24 Thread Krishnakant Mane

Thanks Michael.
So will just reverce proxy help me utilise the performance bennifits 
that nginx offers?
Afterall this kind of setup will only help to proxy requests to python 
paist.  But is paist itself good enough to handle loads of requests?
I herd that fastcgi does some event based requesting and lends the work 
to some worker processes?

is that right or this will any ways happen with nginx using reverce proxy?

Happy hacking.
Krishnakant.

On 25/04/11 00:41, Michael Merickel wrote:
I'm not sure what the pros/cons of fastcgi are, but I use nginx in 
production as a reverse proxy on several projects. This cookbook is 
for pyramid, but the configuration is framework-agnostic:


http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/deployment.html#nginx-paster-supervisord

Obviously your INI file will be slightly different for pylons, but the 
nginx configuration would remain the same.


Michael


On Sun, Apr 24, 2011 at 12:24 PM, Krishnakant Mane > wrote:


Hello all.
Can some one help me out with a small problem?
if any one has ever deployed an application in pylons 0.9.7 using
nginx 1.0 or lower, then please give me an example of nginx.conf
file and any other files I need to change.
My application name is gnukhata and I will highly appreciate if
some one could also share off list a production.ini file.
Right now I am trying to configure the file as given

at,http://www.rightbrainnetworks.com/blog/deploying-a-pylons-app-to-production-step-by-step-part-1-of-2/

I did as exactly mentioned in this tutorial part one for nginx.conf.
I have the lines changed exactly as in the example there.
Can some one tell me if that's the correct way to do?
happy hacking.
Krishnakant.

-- 
You received this message because you are subscribed to the Google

Groups "pylons-discuss" group.
To post to this group, send email to
pylons-discuss@googlegroups.com
.
To unsubscribe from this group, send email to
pylons-discuss+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.


--
You received this message because you are subscribed to the Google 
Groups "pylons-discuss" group.

To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.


--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: need help with enginx configuration with Pylons.

2011-04-24 Thread Michael Merickel
I'm not sure what the pros/cons of fastcgi are, but I use nginx in
production as a reverse proxy on several projects. This cookbook is for
pyramid, but the configuration is framework-agnostic:

http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/deployment.html#nginx-paster-supervisord

Obviously your INI file will be slightly different for pylons, but the nginx
configuration would remain the same.

Michael


On Sun, Apr 24, 2011 at 12:24 PM, Krishnakant Mane  wrote:

> Hello all.
> Can some one help me out with a small problem?
> if any one has ever deployed an application in pylons 0.9.7 using nginx 1.0
> or lower, then please give me an example of nginx.conf file and any other
> files I need to change.
> My application name is gnukhata and I will highly appreciate if some one
> could also share off list a production.ini file.
> Right now I am trying to configure the file as given at,
> http://www.rightbrainnetworks.com/blog/deploying-a-pylons-app-to-production-step-by-step-part-1-of-2/
>
> I did as exactly mentioned in this tutorial part one for nginx.conf.
> I have the lines changed exactly as in the example there.
> Can some one tell me if that's the correct way to do?
> happy hacking.
> Krishnakant.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-discuss+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



need help with enginx configuration with Pylons.

2011-04-24 Thread Krishnakant Mane

Hello all.
Can some one help me out with a small problem?
if any one has ever deployed an application in pylons 0.9.7 using nginx 
1.0 or lower, then please give me an example of nginx.conf file and any 
other files I need to change.
My application name is gnukhata and I will highly appreciate if some one 
could also share off list a production.ini file.
Right now I am trying to configure the file as given 
at,http://www.rightbrainnetworks.com/blog/deploying-a-pylons-app-to-production-step-by-step-part-1-of-2/


I did as exactly mentioned in this tutorial part one for nginx.conf.
I have the lines changed exactly as in the example there.
Can some one tell me if that's the correct way to do?
happy hacking.
Krishnakant.

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.