[modwsgi] Controlling processes and threads in mod-wsgi-docker

2018-05-17 Thread Michael Kirk
Hi, I'm running a python app using mod-wsgi-docker, as a replacement for using it on a manually configured server. The application is flask/sqlalchemy/mysql, and it's working fine, except I see occasional errors that seem to be sqlalchemy complained that an existing transaction needs to be

Re: [modwsgi] Tuning on Amazon AWS

2018-05-17 Thread Leonardo L. P. da Mata
WSGIRestrictEmbedded On is there. I will do the tests with different configuration for apache and the number of process and threads that you suggested. Thanks 2018-05-16 23:29 GMT-03:00 Graham Dumpleton : > > > > On 17 May 2018, at 6:06 am, Leonardo L. P. da Mata

Re: [modwsgi] cannot find style.css

2018-05-17 Thread Graham Dumpleton
> On 16 May 2018, at 12:49 pm, Brad S wrote: > > [Wed May 16 02:44:46.826002 2018] [wsgi:error] [pid 16355] [remote > 73.135.97.117:35304] Not Found: /home/robin/www/trader/style.css > ^C > > root@localhost:/home/robin/www/trader# ls -l /home/robin/www/trader/style.css

Re: [modwsgi] Controlling processes and threads in mod-wsgi-docker

2018-05-17 Thread Graham Dumpleton
> On 17 May 2018, at 10:17 pm, Michael Kirk wrote: > > Hi, > > I'm running a python app using mod-wsgi-docker, as a replacement for using it > on a manually configured server. > > The application is flask/sqlalchemy/mysql, and it's working fine, except I > see

Re: [modwsgi] Tuning on Amazon AWS

2018-05-17 Thread Leonardo L. P. da Mata
Hello, after some tests I've found that, for my environment, 10 process and 3 threads improve my throughput with >0.9 apdex from 85 req/s to 95 req/s. but neither changing the mod_wsgi to a newer version or using event mode on MPM caused any significant changes on this throughput or in the

Re: [modwsgi] Tuning on Amazon AWS

2018-05-17 Thread Graham Dumpleton
> On 18 May 2018, at 9:45 am, Leonardo L. P. da Mata wrote: > > Hello, > > after some tests I've found that, for my environment, 10 process and 3 > threads improve my throughput with >0.9 apdex from 85 req/s to 95 req/s. > > but neither changing the mod_wsgi to a newer