部署 请教一下:This website is under heavy load (queue full) 怎么办?

jiuxueliang · 2018年08月02日 · 最后由 jiuxueliang 回复于 2018年08月03日 · 9308 次阅读

这两天网站访问人数有点多,然后人一多就出现:

This website is under heavy load (queue full)
       We're sorry, too many people are accessing this website at the same time. We're working on this problem. Please try again later.

这样的提示,然后 passenger_max_request_queue_size 0;也设置了,还是会报错,请问该怎么办。

passenger 配置:

passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /usr/bin/passenger_free_ruby;
passenger_max_request_queue_size 0;
server {
        listen 80;

        server_name www.xxx.com;
        root /www/xxx.com/public;
        rails_env production;
        passenger_enabled on;
        passenger_friendly_error_pages on;
}

passenger 配置贴一下

nouse 回复

您看一下,我补充的配置。

建议遵循 https://www.phusionpassenger.com/library/config/nginx/optimization/ 用 passenger-status 看一下到底是 CPU heavy 还是 IO blocking,对症下药。

nouse 回复

谢谢指点。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号