如何解决circus插座的问题?

2024-05-29 11:27:40 发布

您现在位置:Python中文网/ 问答频道 /正文

环境:NGINX、Django、Python、Circus

我有一个网站,在不同的页面上返回了504个错误。在nginx错误日志中,我得到了以下错误:

[error] 30117#0: *280231 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx, server: www.website.com, request: "GET /en/path/page/ HTTP/1.1", upstream: "http://unix:/tmp/glp-circus.sock/en/path/page/", host: "www.website.com"

我增加了服务器的执行超时,这些页面似乎正在加载,但速度非常慢。根据浏览器,TTFB超过2分钟

据推测,GLP的套接字仍然是问题的根源

如何对Circus管理的插座进行故障排除?我已检查GLP套接字是否处于活动状态

https://circus.readthedocs.io/en/latest/


Tags: pathcomwww错误page页面websiteout

热门问题