我正在运行带有使用sqlite结构的django的uwsgi应用程序的Nginx.
在运行uwsgi时,当发出GET或POST请求时,它会发送输出,例如:
[pid:29018 | app:0 | req:39/76] 136.61.69.96(){52 vars in 1208 bytes} [Wed Jul 19 17:25:12 2017] POST / binaryQuestionApp /?participant = A3AJJHOAV7WIUQ& assignmentId = 37QW5D2ZRHPMKY652LHT9QV23ZD8SU =>在722毫秒(HTTP / 1.1 200)中生成6个字节,在195个字节中生成3个头(核心0上有1个交换机)
最后一位是什么意思?有时它会说2个开关,有时是1个.
解决方法:
大概你已经找到了答案,但对于那里寻找答案的人来说,我发现了这个:
“core” is the low-level concept for uWsgi concurrency context in a
process (can be a thread or a greenlet or a fiber or a goroutine and
so on…) while switches count is incremented whenever an app “yield”
its status (this has varIoUs meanings based on the lower concurrency
model used)
资料来源:http://lists.unbit.it/pipermail/uwsgi/2015-March/007949.html