我在一个docker容器中运行uwsgi 2.0.17并结合nginx infront和Django 2.0.3。由于某些原因,由于uwsgi死亡,我的请求的1,6%失败。 logfiles看起来像这样:
DAMN ! worker 1 (pid: 108) died, killed by signal 9 :( trying respawn ...
Respawned uWSGI worker 1 (new pid: 149)
它发生在随机URI上,因此没有特定的视图导致它。我的uwsgi.ini看起来像这样:
[uwsgi]
# this config will be loaded if nothing specific is specified
# load base config from below
ini = :base
# %d is the dir this configuration file is in
socket = %dapp.sock
master = true
processes = 4
# pot. fix for prematurely closed upstream error
limit-as = 512
[dev]
ini = :base
# socket (uwsgi) is not the same as http, nor http-socket
socket = :8001
[local]
ini = :base
http = :8000
[base]
# chdir to the folder of this config file, plus app/website
chdir = %dserver
# load the module from wsgi.py, it is a python path from
# the directory above.
module=server.wsgi:application
# allow anyone to connect to the socket. This is very permissive
chmod-socket=666
有关如何追踪死亡原因或解决问题的想法吗?