美文网首页
nginx log中有多个upstream_response_t

nginx log中有多个upstream_response_t

作者: 小胖扁 | 来源:发表于2019-05-20 17:26 被阅读0次
    • 现象

      nginx log中出现两个或者多个逗号分隔的upstream_response_time和upstream_addr,说明upstream到两个server上了

      我遇到的是有两个第一个超时,第二个正常

    • 参考文档:ngx_http_upstream_module

      If an error occurs during communication with a server, the request will be passed to the next server, and so on until all of the functioning servers will be tried. If a successful response could not be obtained from any of the servers, the client will receive the result of the communication with the last server.

    • 分析

      也就是说,nginx会在第一个server失败的时候,请求下一个server,所以会有两个或者多个,其实只有最后一个成功了

    相关文章

      网友评论

          本文标题:nginx log中有多个upstream_response_t

          本文链接:https://www.haomeiwen.com/subject/xqclzqtx.html