This is the first I'd heard of x-sendfile so I looked it up. It seems
to work to off-load work from the application server to the web-server
for serving large files.
In theory, there would be no real benefit from this in Rocket since
Rocket and web2py run in the same process. Serving a file from disk is
hardly a CPU-intensive process for a threaded system. The only benefit
would be to allow the GC to collect some of the request environment
stuff earlier. I can't see this having a measurable benefit.
For Apache and LightTPd, it makes a more sense when the app-server runs
in a different process.
-tim
On 4/22/2010 11:11 AM, Thadeus Burgess wrote:
I know I have been talking about x-sendfile alot lately....
Is there any reason that rocket should support it?
--
Thadeus
On Tue, Apr 20, 2010 at 4:06 PM, mdipierro<mdipie...@cs.depaul.edu> wrote:
ok. will fix this soon.
On Apr 20, 4:03 pm, Timothy Farrell<tfarr...@swgen.com> wrote:
Ton's of references in epydoc. Those will be there as long as
wsgiserver.py is in the distro. Otherwise, run epydoc and sphinx.
Other than that, theres:
\examples\views\default\index.html:line 35
- change link tohttp://launchpad.net/rocket
\examples\views\default\who.html:line 77
- remove the reference so long as wsgiserver is not the default
- add "<li>Rocket Web Server developed by Timothy Farrell.</li>"
On 4/20/2010 9:21 AM, mdipierro wrote:
I made a mistake. Left references to cherry in some of the pages in
applications/example. Could you help me locate them and suggest
changes?
Massimo
On Apr 20, 8:11 am, Timothy Farrell<tfarr...@swgen.com> wrote:
Thank you. It's always good to see the fruits of one's labor come out.
On 4/19/2010 3:57 PM, elffikk wrote:
a simple test loading one by one the same link, leaving concurrency
and advanced testing to Tim and others :)
just wanted to feel the improvement, and I have to say Tim did his job
very well
web2py 1.76.5 vs 1.77.1 load test
10 requests:
1.76.5 - 0.3016 seconds
1.77.1 - 0.2736 seconds
100 requests:
1.76.5 - 1.7729 seconds
1.77.1 - 1.4585 seconds
1000 requests:
1.76.5 - 16.6493 seconds
1.77.1 - 13.4033 seconds
and here is the great test script :)
import sys, urllib
n = int((sys.argv[1:] or [10])[0])
s = 'http://127.0.0.1:8001/'#s = 'http://127.0.0.1:8002/'
for i in xrange(n):
urllib.urlopen(s).read()
--
Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en