#193: Explain why WSGI might be better with LightTPD
-------------------------+--------------------------------------------------
 Reporter:  Modjoe       |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:  1.0b1    
Component:  Docs         |      Version:           
 Severity:  minor        |   Resolution:           
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by claudio.martinez):

 "IIRC, CherryPy? defaults to *1* thread. I'd say that the test is bogus if
 you didn't increase the server threads."

 I thought it was 5 when I did the tests, because that was the point were,
 as far as I can remember, the performance started dropping.
 cherrypy.config.get('server.thread_pool') shows that it defaults to 10.

 I didn't try tweaking Apache either (used apache for proxying, lighttpd
 for wsgi). The test server had FC4 default configuration. I don't think it
 was an Apache issue since I had the same results on testing against
 CherryPy directly.

 Setting up lighttpd + wsgi doesn't have to be hard, my lighttpd
 configuration used for the tests was:
 {{{
 # default document-root
 server.document-root = "/usr/local/lib/python2.4/site-
 packages/yourproject.egg"

 # TCP port
 server.port = 443

 # selecting modules
 server.modules = ( "mod_access",
                    "mod_scgi",
                    "mod_accesslog",
                    "mod_rewrite",
                    "mod_staticfile" )

 ssl.engine = "enable"
 ssl.pemfile = "/etc/lighttpd/server.pem"

 scgi.server = ( "/" =>
     ((  "host" => "127.0.0.1",
         "port" => 4000,
         "check-local" => "disable"
     ))
 )
 }}}

 As it's seen from the config, I was serving static content from the wsgi
 server and not directly from lighttpd, which would speed things up a
 little.

 Tests were run against a database intensive, ssl page.

 When I have the chance (and the servers available) I'll run the tests
 again.

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/193>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to