專案進行壓測頻繁有502 504錯誤透過各種排查終於找到了問題的所在,由於tcp訪問超時導致
nginx.conf 設定
tcp_nodelay on;
_m fastc fastcgi_read_timeout 600;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_buffers_size 128k;
fastcgi_temp_file_write_size 128k; 0 failed (99: Cannot assign requested address)
modify /etc/sysctl.conf:
下面是tcp的設定的介紹文章