> Let's say I'm configuring uwsgi to run with 4 processes > And lets say I have some startup code (that should run once - and only > once) loading data to memory in my wsgi.py file as suggested here > <http://eldarion.com/blog/2013/02/14/entry-point-hook-django-projects/> > > Would the wsgi.py code would be run everytime a worker process is started > (and restarted)? > > I heard a mention about uwsgi "master" process - should I use one and how? > Are there specific configuration options I should use for this? > > I'm using uwsgi 2.0.4+,django behind nginx (with unix socket) > > I'll be glad for help with this subject > > Twitter:@alonisser <https://twitter.com/alonisser> > LinkedIn Profile <http://www.linkedin.com/in/alonisser> > Facebook <https://www.facebook.com/alonisser> > *Tech blog:*https://medium.com/@alonisser > *Personal Blog:*degeladom.wordpress.com > Tel:972-54-6734469 > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
the default is loading the entry point one time in the master (or the first worker if no master is configured) and then fork() With --lazy-apps or --lazy each worker will load the entry point. -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
