Re: Running cherrypy as a WSGI webserver
Ralph Heinkel <ralph.heinkel-S0/[email protected]> Fri, 7 Jul 2017 19:11:53 +0200
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
If the requests are very much CPU bound then this number (10 * 15) seems right - python (due to the global interpreter lock) will not be able to process those threads in (real) parallel . If your requests however are mainly i/o bound then parallel processing via threads should actually show in a reduction of the overall (wall clock) time. In case of CPU intensive requests I would suggest to run multiple processes (in case your server has more than one CPU) -- this should actually speed up things. Ralph On 07/07/2017 06:46 PM, Rita Morgan wrote: Running cherrypy along with flask. I know a certain web request takes ~15 secs. So, when I run it concurrently (10 threads). I would expect the time to be around 15 secs. But the time is 15*10 seconds so I believe the requests are going syncrnously. Is there a way to verify this? -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/[email protected] . To post to this group, send email to cherrypy-users-/[email protected] . Visit this group at https://groups.google.com/group/cherrypy-users . For more options, visit https://groups.google.com/d/optout . -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/[email protected] . To post to this group, send email to cherrypy-users-/[email protected] . Visit this group at https://groups.google.com/group/cherrypy-users . For more options, visit https://groups.google.com/d/optout .