502 Gateway Errors under High Load (nginx/php-fpm)

前端 未结 4 1037
滥情空心
滥情空心 2020-12-12 10:51

I work for a rather busy internet site that is often gets very large spikes of traffic. During these spikes hundreds of pages per second are requested and this produces rand

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 11:45

    Unix socket accept 128 connections by default. It is good to put this line into /etc/sysctl.conf

    net.core.somaxconn = 4096
    

提交回复
热议问题