[uWSGI] Will uwsgi.lock() work for threads?

2018-04-13 Thread Skip Montanaro
I need to manage concurrent database update activity for my workers. I see that there is a lock() function in the Python API. Will it work between threads in the same process as well as between different worker processes? Thanks, Skip Montanaro ___ uWSG

Re: [uWSGI] Will uwsgi.lock() work for threads?

2018-04-13 Thread Roberto De Ioris
> I need to manage concurrent database update activity for my workers. I > see that there is a lock() function in the Python API. Will it work > between threads in the same process as well as between different > worker processes? > > Thanks, > > Skip Montanaro > ___

Re: [uWSGI] Will uwsgi.lock() work for threads?

2018-04-13 Thread Skip Montanaro
I do. It's giving me fits. (Probably my problem, but this looks like a reasonable short-term workaround.) On Fri, Apr 13, 2018 at 9:35 AM, Roberto De Ioris wrote: > >> I need to manage concurrent database update activity for my workers. I >> see that there is a lock() function in the Python API.

Re: [uWSGI] Cache hit rate?

2018-04-13 Thread Skip Montanaro
> Does the uWSGI caching system compute hit rates, or do I need to > finagle that myself? I found this info in the stats object. I was thinking that uwsgitop displayed everything and hadn't peeked at the raw (JSON) data. Skip ___ uWSGI mailing list uWSG