unbit / uwsgi

uWSGI application server container
http://projects.unbit.it/uwsgi
Other
3.45k stars 691 forks source link

Specify multiple need-app in emperor #2064

Open umeshksingla opened 5 years ago

umeshksingla commented 5 years ago

I have 3 flask applications and I plan to use --emperor option of uwsgi. I need to use need-app to check if one of the applications fails to start.

The problem I am facing is if I use --need-app with /usr/bin/uwsgi or need-app = true in any of the .ini files and one application has an error loading on startup, it shuts down the whole uwsgi and does not run the rest of the applications too.

A sample .ini file I have is:

[uwsgi]
module = test.app:app

# need-app = true

processes = 2
threads = 1

socket = %c-%n.sock
chmod-socket = 666
vacuum = true

die-on-term = true

Does this mean I will have to use uwsgi --ini 1.ini for each application separately since the emperor does not support this? Let me know if any more info is needed.

$ uwsgi --version
2.0.18
xrmx commented 5 years ago

Can you share the emperor config please?

umeshksingla commented 5 years ago

I do not have any emperor config, does this mean I am using the default which ships with uwsgi?

xrmx commented 5 years ago

So you are not using the emperor at all?

umeshksingla commented 5 years ago

I am sorry. I'm simply using: uwsgi --emperor ./**/*.ini.