<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>One More Blog - Latest Comments in wsgi-benchmarking | One More Blog</title><link>http://ericmoritz.disqus.com/</link><description></description><atom:link href="https://ericmoritz.disqus.com/wsgi_benchmarking_one_more_blog/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 14 Nov 2008 06:33:05 -0000</lastBuildDate><item><title>Re: wsgi-benchmarking | One More Blog</title><link>http://eric.themoritzfamily.com/wsgi-benchmarking.html#comment-3768834</link><description>&lt;p&gt;William, &lt;br&gt;I am using fapws for a few month. It works quite well, but every django exception kills all instances of fapws. Are there any ideas how to prevent it ? For now, I made a checker script which watchdog fapws and restart it if needed.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nick</dc:creator><pubDate>Fri, 14 Nov 2008 06:33:05 -0000</pubDate></item><item><title>Re: wsgi-benchmarking | One More Blog</title><link>http://eric.themoritzfamily.com/wsgi-benchmarking.html#comment-3739453</link><description>&lt;p&gt;I tried fapws2 but ran into compilation issues. Even still it would have been academic for me as WSGI has issues on Python 3.0 (at the very least needs some rework to deal with the new notion of strings and byte strings) and apparently there is no move in that community to fix them at present (according to some notes in bug tracker). I'm aiming to have all parts of my basic application building stack available for both Python 2.x and 3.x and WSGI currently fails hard on 3.0.&lt;/p&gt;&lt;p&gt;Then again a lot of common Python tools seem to be some distance away from supporting Python 3. The one I miss the most is docutils.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Watkins</dc:creator><pubDate>Thu, 13 Nov 2008 10:13:47 -0000</pubDate></item><item><title>Re: wsgi-benchmarking | One More Blog</title><link>http://eric.themoritzfamily.com/wsgi-benchmarking.html#comment-3733865</link><description>&lt;p&gt;For info, I've made the same type of concerns some time ago. Finally, I've decided to develop a small wsgi server called &lt;a href="william-os4y.livejournal.com" rel="nofollow noopener" target="_blank" title="william-os4y.livejournal.com"&gt;FAPWS&lt;/a&gt; based on &lt;a href="http://monkey.org/~provos/libevent/" rel="nofollow noopener" target="_blank" title="http://monkey.org/~provos/libevent/"&gt;Libevent&lt;/a&gt;. This is not yet a "production" application, but it show clearly that plugin nice library to Python could be a solution to tackle both performance and memory foot print. I know internet websites running Django with FAPWS with an uptime of several months. Interestted people are welcome to help in this project.  Because FAPWS is very light, I'm running several instances of it (for example 1 for static files and 2 instances for django) and using lighttp or Pound to be the front end and the load balancer. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">William</dc:creator><pubDate>Thu, 13 Nov 2008 02:49:38 -0000</pubDate></item><item><title>Re: wsgi-benchmarking | One More Blog</title><link>http://eric.themoritzfamily.com/wsgi-benchmarking.html#comment-3733728</link><description>&lt;p&gt;A buddy of mine had created Ubuntu .deb for nginx with mod_wsgi compiled in that I was able to use.&lt;/p&gt;&lt;p&gt;&lt;a href="http://media.mnjournal.com/nginx_0.6.32-3ubuntu1_i386.deb" rel="nofollow noopener" target="_blank" title="http://media.mnjournal.com/nginx_0.6.32-3ubuntu1_i386.deb"&gt;http://media.mnjournal.com/...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I'm seeing similar numbers with an apache frontend proxied to nginx with mod_wsgi that I'm seeing with apache proxied to another apache server with mod_wsgi with maybe a 1 or 2 milliseconds less than apache/mod_wsgi.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ericmoritz</dc:creator><pubDate>Thu, 13 Nov 2008 02:26:41 -0000</pubDate></item><item><title>Re: wsgi-benchmarking | One More Blog</title><link>http://eric.themoritzfamily.com/wsgi-benchmarking.html#comment-3733679</link><description>&lt;p&gt;I've tested nginx FCGI and WSGI in the same environment (Django just after standard install) and from there WSGI on nginx was twice as fast as FCGI with flup. This is somewhat similar to your Apache results.&lt;/p&gt;&lt;p&gt;To have mod_wsgi for nginx compiled, you have to applay manually one patch (it is there but not worked properly). The patch only change one function name.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rafał Jońca</dc:creator><pubDate>Thu, 13 Nov 2008 02:16:28 -0000</pubDate></item><item><title>Re: wsgi-benchmarking | One More Blog</title><link>http://eric.themoritzfamily.com/wsgi-benchmarking.html#comment-3728798</link><description>&lt;p&gt;That's interesting.  It may be the fact that flup has to translate the scgi headers to a WSGI dictionary to pass it off to the WSGI application.  I couldn't imagine it adding to much overhead but it is still an extra step.  HTTP Headers to SGCI to WSGI instead of HTTP Headers -&amp;gt; WSGI that the other solutions provide.  I don't know much about QP but it looks like all it's doing is splitting on the SCGI headers and passing them off.  It could also be that QP's web server implementation is slower than QP's scgi implementation.  QP's web server is definitely doing more work than QP's scgi handler based on a quick glance at hub/&lt;a href="http://web.py" rel="nofollow noopener" target="_blank" title="web.py"&gt;web.py&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Playing with python's hotshot profiler may lend some light to why flup is slower when QP's implementation is faster than mod_proxy.&lt;/p&gt;&lt;p&gt;I'll set up QP on my machine to get comparable timing numbers to my tests.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ericmoritz</dc:creator><pubDate>Thu, 13 Nov 2008 01:24:08 -0000</pubDate></item><item><title>Re: wsgi-benchmarking | One More Blog</title><link>http://eric.themoritzfamily.com/wsgi-benchmarking.html#comment-3728619</link><description>&lt;p&gt;Thanks Grant.  I'll give it a whirl.  I'm currently trying different frontend solutions.  I tried lighttpd but it doesn't rewrite the location header correctly.  lighttpd 1.5 supports this but I'll have to compile it myself.&lt;/p&gt;&lt;p&gt;I'm also trying nginx as a reverse proxy, which appears to add a couple milliseconds to the request.  I don't know why.&lt;/p&gt;&lt;p&gt;nginx with mod_wsgi behind an apache proxy performs maybe 1 or 2 milliseconds faster than apache to apache with mod_wsgi.&lt;/p&gt;&lt;p&gt;I'll have the official numbers tomorrow sometime.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ericmoritz</dc:creator><pubDate>Thu, 13 Nov 2008 01:03:43 -0000</pubDate></item><item><title>Re: wsgi-benchmarking | One More Blog</title><link>http://eric.themoritzfamily.com/wsgi-benchmarking.html#comment-3723357</link><description>&lt;p&gt;Perhaps its the implementations of flup and scgi which make the difference?&lt;/p&gt;&lt;p&gt;For some reason I found the reverse in my own comparison SCGI, not proxy, (both lighttpd and Apache 1.3) had the lowest overhead:&lt;/p&gt;&lt;p&gt;&lt;a href="http://mikewatkins.ca/2008/10/22/qp-lighttpd-ssl-and-scgi/" rel="nofollow noopener" target="_blank" title="http://mikewatkins.ca/2008/10/22/qp-lighttpd-ssl-and-scgi/"&gt;http://mikewatkins.ca/2008/...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;As you'd expect a Python SCGI server should deliver slightly better performance than a full stack Python web server. There appears to be little difference between the Apache and lighttpd implementations of SCGI (its a pretty simple protocol) and they perform more or less identically. What surprised me is the overhead of Apache proxy (note I am only comparing Apcahe 1.3 - perhaps that has changed in 2.x).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Watkins</dc:creator><pubDate>Wed, 12 Nov 2008 18:08:42 -0000</pubDate></item><item><title>Re: wsgi-benchmarking | One More Blog</title><link>http://eric.themoritzfamily.com/wsgi-benchmarking.html#comment-3715692</link><description>&lt;p&gt;You could also try HAProxy for the frontend instead of a full apache process that only uses ProxyPass.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Grant</dc:creator><pubDate>Wed, 12 Nov 2008 14:41:00 -0000</pubDate></item></channel></rss>