Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a uWSGI setup where I run dynamic mode and add applications to it. All applications are working off the same codebase, but each have their own settings file. Its working beautifully.

Say for instance, i want to change a setting for one app that has already been loaded. Is there a way I can get uwsgi to reload the app, rather than restarting the whole uwsgi server? In emperor mode I could just touch the config file. How do I achieve the equivalent result in dynamic mode?

share|improve this question
up vote 1 down vote accepted

Unfortunately you can't. Destroying a Python subinterpreter (as well as Perl or Lua), is a pretty weak operation that cannot free lot of things leading to very poor results.

For example C-based shared python modules cannot be safely freed (as other interpreters could have reference to them) as well as more os-related problems like opened file descriptors and similar.

The best thing you can do is reloading workers (using chain-reload tricks to reduce downtime).

Pay attention: you only need to reload workers, not the whole instance

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.