Hello, I have setup nginx & uwsgi on lubuntu with the script and it works great (best server ever!), except for a part of my application that requires multi threads. I have changed the /etc/uwsgi/web2py.xml to enable threads, tried to set each worker with 2 threads, set the thread memory stack to 512, it doesn't work: I quickly get a 'resource not available (error 11)' message.
Anyone has a tip on what I could work on to make this work? Because otherwise the application works fine with rocket / gevent for example. Thanks, Andre Le mercredi 12 décembre 2012 00:06:16 UTC+1, Niphlod a écrit : > > I run uwsgi using the emperor mode for some time now.... based on my > config I tried to upgrade the existing one. Result is available at > https://www.dropbox.com/s/n7chteos9sh6p2h/setup-web2py-nginx-uwsgi-ubuntu.sh > > I'm looking forward to improve things both on uwsgi niceties and general > bash customization (the moment I saw fabric <http://fabfile.org> I almost > stopped writing bash :-P) > > Improvements: > - no uwsgi from debian packages (overcomplicated configurations). uwsgi is > installed from pip (so you can upgrade with a simple pip install --upgrade > uwsgi) > - optional response.static_version friendly static directories > configuration (added also cache headers as an option) > - improved syntax for web2py.xml (no app, no plugin) > - example of uwsgi cron facility (clean sessions script included) > - uwsgi emperor mode, managed with Upstart > - optional upstart pre-script command to fix permissions and compress > static files > > If interested, I can make a fabfile for that. > > <offtopic on> I use Redis as cache but for the "I love embedded" guys > uwsgi has a cache framework. I'm accepting votes to make a uwsgi's cache > compatible module for web2py, but you will have to test it (no time for > that, sorry) > <offtopic off> > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.