On Feb 17, 2015 2:40 PM, "James" <[email protected]> wrote: > > Hi, > > I was just wondering, is there a benefit for using emperor when I am only ever going to run a single application? I had in my head that it might be good in terms of restarting the application when it crashes but this might be covered by running uwsgi with an init.d script.
That is the duty of --master more than emperor (restarting on worker death). The emperor would not be involved unless your master process died, in which case you likely have problems that would not be fixed by a simple restart anyway. The emperor is useful for dynamically changing the group of app(s) running one a server, so even though you are only running one app, it could for instance be used to push an alternate config or something (though the same could also be accomplished using a remote uri, eg. --ini=http://). So it might be useful from an architecture POV, or if you might add apps later, but otherwise... YAGNI :) -- C Anthony
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
