nginx 做代理使用,测试只要有接口执行时间超过 60s,nginx 就报 502,errlog 显示:upstream prematurely closed connection while reading response header from upstream。现在已经把 nginx 和 uwsgi 启动配置修改了,uwsgi 增加 harakiri 参数, nginx 增加 proxy_read_timeout,但是并没有什么效果。
程序用 supervisor 管理,贴一下启动配置: http://ww1.sinaimg.cn/large/bbe68005ly1g8dq0eyl3zj21060b8q84.jpg
nginx 配置: http://ww1.sinaimg.cn/large/bbe68005ly1g8dq24pep0j20wm09w42c.jpg
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.