[uWSGI] Fail after N tries

Michael Hunley michael at codecobblers.com
Wed Oct 9 15:02:29 CEST 2013


>
> the --need-app stop the instance (exit(1)) if no app has been loaded.
> I do not know if it is the right approach for you, can you paste your
> current config ?
> --
> Roberto De Ioris
> http://unbit.it

I would want something like --need-app 10 (fail exit(1) after 10 attempts
to load the app)

Current config is:

[uwsgi]
auto-procname = true
enable-threads = true
harakiri = 60
harakiri-verbose = true
limit-post = 524288000
log-slow = 1000
master = true
need-app = true
post-buffering = 8192
#reload-on-exception = true
virtualenv = ../env
wsgi-file = wsgi.py
listen = 512
processes = 3
threads = 40
reload-mercy = 6000
worker-reload-mercy = 6000
lazy-apps = true
env = PYRAMID_INI=live.ini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20131009/017d93f6/attachment.html>


More information about the uWSGI mailing list