emmett-framework/granian

Gunicorn preload_app setting analogue

aliaksei-imi opened this issue · 1 comments

Is there a way to preload python app in the master process so as to save memory in large apps by means of fork/cow?

https://docs.gunicorn.org/en/stable/settings.html#preload-app

@aliaksei-imi no there's not. Granian loads the application directly in workers, so once per worker.
You might increase the number of threads and see how it behaves.