Hi Robert, Ian >> I'm going to be doing some performance tests on my setup in the next few >> days, >> but one thing I've noticed in preliminary playing is that using >> fastcgi/flup >> with nginx is noticeably faster than a straight proxy.
I've been interested to see how well Pylons works with Nginx and FastCGI too because I've heard lots of people say good things about the setup. On my server with a fairly simple app, using Nginx 0.4.13 to proxy to a paste http server takes about 11.5ms per request (over 1000 requests). With Nginx and FastCGI the same app took about 51ms per request. Using the paste without the proxy takes about 10.6ms per request. Unless I've set something up very wrong, that means that there is about a 1ms overhead using Nginx as a proxy compared to doing the requests directly but that using HTTP is about 5 times faster than using FastCGI. Should I be using a different version of Nginx? I would say though that Nginx is very easy to setup and I do like it, even if the FastCGI setup doesn't seem faster than the HTTP setup with Pylons. > FastCGI doesn't seem substantially easier to parse than HTTP, so I'm not > sure why that'd be. Maybe flup is just faster than paste.httpserver. > Or maybe there's something different about the way connections are > handled (are FastCGI connections persistent in any way?). I would have been surprised if the FastCGI version was faster too, and in my tests it isn't. I'd be very interested to hear your results though Robert. Cheers, James P.S. For anyone interested, this is still my favorite method of deploying Pylons/Paste apps in production: http://pylonshq.com/project/pylonshq/wiki/DaemonTools --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
