uWSGI: --master with --emperor spawns two emperors

后端 未结 3 1123
情书的邮戳
情书的邮戳 2020-12-13 06:58

I can see that if I start uwsgi like this:

sudo /usr/local/bin/uwsgi --emperor /etc/uwsgi/vassals --uid www --gid www

it creates one empero

3条回答
  •  生来不讨喜
    2020-12-13 07:12

    Here is what official documentation says:

    The emperor should generally not be run with --master, unless master features like advanced logging are specifically needed.

    If you're wondering what master option does, here is the answer:

    master

    uWSGI’s built-in prefork+threading multi-worker management mode, activated by flicking the master switch on. For all practical serving deployments it’s not really a good idea not to use master mode.

    So, to summarize:

    • Use --master for usual uWSGI instance,
    • Do not use --master for uWSGI Emperor.

提交回复
热议问题