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 <[email protected]> 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 <[email protected] > > <mailto:[email protected]>> 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 > > [email protected] > > <mailto:[email protected]>. > > To unsubscribe from this group, send email to > > [email protected] > > <mailto:pylons-discuss%[email protected]>. > > 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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
