dhcn

       刚开始的错误信息是

 

  1. upstream timed out (110: Connection timed out) while reading response header from upstream  


给相关的nginx代理层加了timeout配置:

 

 

  1. # time out settings  
  2.  proxy_connect_timeout 600s;  
  3.  proxy_send_timeout   600;  
  4.  proxy_read_timeout   600;  

接着出现的错误:

 

 

  1. 504 gateway time out  


我们的容器环境是uwsgi django

 

首先在nginx uwsgi_params配置中添加了

 

  1. uwsgi_connect_timeout 600;  
  2. uwsgi_read_timeout    600;  
  3. uwsgi_send_timeout    600;  


其次在uwsgi.ini配置中添加了:

 

 

  1. harakiri=1200  
  2. uwsgi_send_timeout=600  


        问题基本解决。

 

参考资料:

http://stackoverflow.com/questions/18740635/nginx-upstream-timed-out-110-connection-timed-out-while-reading-response-hea

http://www.codes51.com/article/detail_112864.html

分类:

技术点:

相关文章:

  • 2021-10-13
  • 2021-09-02
  • 2021-06-02
  • 2022-02-25
  • 2021-07-30
  • 2022-01-11
  • 2021-08-16
  • 2021-11-21
猜你喜欢
  • 2021-10-03
  • 2021-05-18
  • 2021-08-16
  • 2021-10-17
  • 2021-12-12
  • 2021-08-04
相关资源
相似解决方案