THREADS_PER_PAGE container configuration

I am currently developing an application using a flask and I have noticed that many existing projects use the THREADS_PER_PAGE flag in their config.py (i.e. here and here ).

The first link describes THREADS_PER_PAGE as application threads and suggests using two threads per core (one to handle incoming requests and the other to perform background operations).

I looked at the source of the flags and I couldn't find a reference to the threads_per_page config parameter. Would someone be able to describe the purpose of THREADS_PER_PAGE, and if really needed (which is the default if not specified).

+3


source to share


1 answer


The parameter is not used by the current version of Flask and has not been used in the past.

Flask is a WSGI application and relies on a WSGI server to handle concurrency. The Werkzeug server is used for development , but it does not use this config variable either.



The only link I can find in the parameter was on the now deleted Wiki page of the Flask project ; the parameter is mentioned without further comment. All other sources seem to have taken it from there.

+3


source







All Articles