2008/5/29 Alex Marandon <[EMAIL PROTECTED]>:
> 2008/5/28 SamDonaldson <[EMAIL PROTECTED]>:
>> Running ab benchmark tests revealed many requests were failing.
>> Should I be starting MORE Paster processes to handle the load?  Is
>> this the right thing to do, or is the Paster (SCGI) process itself
>> multi-threaded to handle such synchronous requests.  Say the Paster
>> process is doing some I/O (SQL query through sqlalchemy), would that
>> process block and would other requests wait, or would they get
>> serviced?
>
> Hi Sam,
>
> According to 
> http://wiki.pylonshq.com/display/pylonscookbook/Pylons+Execution+Analysis+0.9.6
> paster is multithreaded. It should be easy to test. Hit a controller
> action that sleeps for 10 seconds and see if you can still make
> requests to other actions. I actually need to test for myself as soon
> as I get to work. As for why you get failed requests, I don't know.
>

class FooController(BaseController):

    def bla(self):
        return 'Hello World! %s' % time.time()

    def slow_bla(self):
        time.sleep(10)
        return 'Hello slow World!'

With something like that, manual testing works just fine (ie: I'm able
to hit the action bla as many times as I want while the action
slow_bla is still serving).

When testing with ab though, I do get failed requests, but I actually
get even more failed requests with Apache/mod_wsgi.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to