微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

django – 这个UWSGI输出是什么意思? >“(X开关核心0)”

我正在运行带有使用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 =&GT在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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐