2016-08-01 59 views
0

我遇到了一些問題,這些問題是在Unicorn + Nginx上運行我的Rails應用程序。我們的流量已經在爆炸過去24小時,現在我得到了很多這樣的錯誤在我的Nginx的錯誤日誌:Rails + Unicorn + Nginx暫時無法使用的資源

2016/08/01 18:54:51 [error] 13508#0: *50889 connect() to unix:/home/deploy/website/shared/sockets/unicorn.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 162.158.90.189, server: localhost, request: "GET /api/v1/links.json?referrer=home HTTP/1.1", upstream: "http://unix:/home/deploy/website/shared/sockets/unicorn.sock:/api/v1/links.json?referrer=home", host: "website.com", referrer: "http://website.com/" 

我試着加大了積壓到1024,但是這並沒有幫助在所有。任何人都知道發生了什麼事?

謝謝!

回答

0

上游配置的nginx default fail_timeout爲10s。我想你會達到這個幅度。

相關問題