django - 这个 UWSGI 输出是什么意思? > "(X switches on core 0)"

标签 django nginx uwsgi

我正在运行 nginxuwsgi申请与 django使用了 sqlite结构体。

运行时 uwsgi , 当 GETPOST发出请求后,它会发送输出,例如:
[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/

相关文章:

django - 在 PostgreSQL(PostGIS) 中优化 ST_Intersects

python - 为什么 django 会在新创建的对象上给我一个 ObjectDoesNotExist 错误?

python - uWSGI-导入错误: No module named os

python - 在 ubuntu 16.04 上使用 nginx、uwsgi python-flask 获取 "502 Bad Gateway"

NGINX SSL 握手错误 - sslv3 警报证书已过期 :SSL alert number 45

logging - uWSGI:禁用给定 url 的日志

django - 在search_fields中正确使用外键引用,Django admin

python - Django 1.11 : What fails `pickle` in my parallel test run?

nginx - 仅为所选文件定义特定的缓存控制 header

python - 用于分块响应的 uwsgi/nginx 配置