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

前端 未结 4 1038
滥情空心
滥情空心 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:46

    @Mr. Boon

    I have 8 core 14 GB ram. But the system gives Gateway time-out very often.
    Implementing below fix also didn't solved the issue. Still searching for better fixes.

    You have: fastcgi_buffers 4 256k;

    Change it to:

    fastcgi_buffers 256 16k; // 4096k total

    Also set fastcgi_max_temp_file_size 0, that will disable buffering to disk if replies start to exceed your fastcgi buffers.

    Thanks.

提交回复
热议问题