V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
kenneth
V2EX  ›  程序员

网站服务器端Nginx出问题了,求诊断。

  •  
  •   kenneth · 2013-09-02 17:07:37 +08:00 · 2321 次点击
    这是一个创建于 3906 天前的主题,其中的信息可能已经有所发展或是发生改变。
    网站的架构是Tornado+Storm+Nginx

    如何排查出问题在哪里?

    我已经把nginx的参数都加大了,还是一会就又报504的错误
    fastcgi_connect_timeout 1800s;
    fastcgi_send_timeout 1800s;
    fastcgi_read_timeout 1800s;

    瓶颈可能在哪里?mysql吗?
    还是代码中有溢出?

    求方法诊断系统瓶颈在哪里?

    2013/09/02 17:01:00 [error] 13062#0: *5324 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 173.255.223.14, server: mvmap.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "www.mvmap.com"
    2 条回复    1970-01-01 08:00:00 +08:00
    cloudzhou
        1
    cloudzhou  
       2013-09-02 17:12:48 +08:00
    信息太少,不过很明显 upstream timed out 也就是上游出现 timeout,看看 python容器 的error
    BOYPT
        2
    BOYPT  
       2013-09-02 17:58:04 +08:00
    timed out是你的后端挂了,怎么设nginx都没用的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1131 人在线   最高记录 6547   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:51 · PVG 02:51 · LAX 11:51 · JFK 14:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.