I've got rails machine with nginx and unicorns. Quite typical setup, which you can check here: https://gist.github.com/7e0f9d762cf4d521d3c4
It worked quite well, till today, when I've got lots of:
upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server
in nginx's error.log
After restart it was okay, but I'm afraid that it can happen again. Does anyone had similar problem, or can tell me why it happened?