> Hi, I very much like the idea of the fork-server, however, but do not
> completely understand, if I could use it even if it's supported in the
> python plugin.


currently it is implemented only in the psgi/perl and php plugins in the
2.1 branch.

>
> When (if) it's available in python, is it possible to distinguish in the
> code between the base and adopted vassals?

nice idea, did not thought about it, but yes it should be easy to add a
uwsgi.adopted boolean.

>
> In my setup, every vassal uses the same code base, but different django
> settings, which are used heavily during the import process. I can probably
> hack it to be able to reload some settings after the adopted vassal
> starts,
> but wonder if it's possible at all.

django loads the app at the first request, if you think you can re-define
settings after this phase, yes it is possible to use the fork-server to
gain a bunch of memory and have really faster startups.


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to