这个 UWSGI 输出是什么意思? > “(X 在核心 0 上切换)”
What does this UWSGI output mean? > "(X switches on core 0)"
我是 运行 一个 nginx
的 uwsgi
应用程序 django
使用了 sqlite
结构。
当运行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 => generated 6 bytes in 722 msecs (HTTP/1.1 200) 3 headers in 195 bytes (1 switches on core 0)
最后一位是什么意思?有时说 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
我是 运行 一个 nginx
的 uwsgi
应用程序 django
使用了 sqlite
结构。
当运行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 => generated 6 bytes in 722 msecs (HTTP/1.1 200) 3 headers in 195 bytes (1 switches on core 0)
最后一位是什么意思?有时说 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