[uWSGI] sqlite blocking or not?
deco33 at hotmail.fr
Sat Apr 19 19:20:07 CEST 2014
Please forget it,
it will block as attended. Wrong configuration of mine.
From: deco33 at hotmail.fr
To: uwsgi at lists.unbit.it
Date: Sat, 19 Apr 2014 18:08:01 +0200
Subject: [uWSGI] sqlite blocking or not?
I am not sure if I do things correctly.
Right now, my setup is working with a request done to sqlite through uwsgi.
Here is the way I connect to uwsgi :
uwsgi --plugin http_plugin.so --plugin lua_plugin.so --http :30031 --http-modifier1 6 --lua /path/to/test.lua --async 8
The script does a sqlite connection which deliberatly lasts about 2 seconds (to test the concurrency).
I feared that it would block me since sqlite doesn't have a server. And that it would break uwsgi unblocking nature.
But it seems that I can manage to get concurrency even without async or async 1.
Curl requests will still work in parallel.
That is why I wonder if I get the "blocking" point.
This database is read-only, so no write locks.
Could someone confirm that my current setup enables -massive- concurrency and more important, that I am not missing something on the way ?
uWSGI mailing list
uWSGI at lists.unbit.it
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the uWSGI