我正在运行 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
关于django - 这个 UWSGI 输出是什么意思? > "(X switches on core 0)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45197267/