2009/7/21 yashhappy <[email protected]>: > Hi Graham: > > For a busy server, it's very normal that hundreds of rquests are arrived at > the same time. Supposed that all the requests targetting to a same wsgi > script, how mod_wsgi handle all the requests? I did some tests for this > case. The result is all the requests were served one by one, no matter how > many processes or threads the daemon processs group contains. > That would be a serious bottleneck, if some of the wsgi scripts are very > time-consumeing. Is there any way to dispatch the requests to different > processes to handle it concurrently or how to improve the situation?
Apache/mod_wsgi has no issues with concurrency. It sounds like your configuration is wrong and requests weren't actually being delegated to daemon process as expected, that or you have poor Apache MPM configuration. Other possibility is that whatever performance testing tool you used, you didn't use it properly and weren't actually generating concurrent requests. Please provide the following: 1. What MPM Apache is configured with? Worker or prefork MPM if on UNIX. 2. What the MPM settings are in Apache configuration? How many processes/threads, started servers, maximum etc. This is different to mod_wsgi daemon mode configuration. 3. The mod_wsgi configuration you are using to setup daemon mode, map your application and delegate to daemon process group. 4. Details of testing tool you are using and the command line options you are running it with. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
