WHY LOADING OF ALL MODULES WHEN I HIT THE FLASK REST API

13 views
Skip to first unread message

Sudheer Tati

unread,
Sep 19, 2019, 3:38:24 PM9/19/19
to modwsgi
Hello ,
 In docs i seen that the when i hit the 1st request that the loading of all modules has been taken place . Then in  my case why every time loading all modules in my all rest api calls

Graham Dumpleton

unread,
Sep 19, 2019, 4:00:01 PM9/19/19
to mod...@googlegroups.com


On 19 Sep 2019, at 5:52 pm, Sudheer Tati <sudheerch...@gmail.com> wrote:

Hello ,
 In docs i seen that the when i hit the 1st request that the loading of all modules has been taken place . Then in  my case why every time loading all modules in my all rest api calls

Have a read of:


There are different configurations mod_wsgi can be run as. In some (especially embedded mode), subsequent requests can be handled by different processes, and so until all processes have been primed with code, it will appear that it is being loaded very time.

You should ideally be using the recommended daemon mode configuration. This way it is set number of processes that persist, and so once loaded into the processes you are good to go.

What mode of mod_wsgi are you using? Can you show the mod_wsgi configuration?

Graham

Reply all
Reply to author
Forward
0 new messages