My nginx server always redirect all traffic to 50x page from time to
time. I can’t even restart it. I need to reboot.
You can’t restart Nginx, or restarting it doesn’t help?
The worker_processes 5 and worker_connections is 4096, is it too
many?
Unless you have 5 or more cores, then that’s almost certainly too many.
Try one worker process per core (maybe even just one, unless you are
serving tons of static files) and 1024 worker_connections.
I have no idea if this is related to the 50x errors you get.
How can I check what is the case of the problem? Thanks.
I’d start with the error log and some details about your setup (starting
with your OS, Nginx version, and maybe what you are serving).
I got some idn doamins. They are running wordpress with wp super cache,
when
I request the inner page (the url path is not English, so is the cache
file). Nginx seems can’t get the inner page(no problem for front page).
Then
nginx become really slow and then stop working. After I deactive the wp
super cache for the idn domains, then no more problem so far.
I think the problem is related to wp super cache or their rewrite rule.
It
seems nginx can’t find the url and continous request or looking for the
idn
cache file, so make the server really slow. I can’t remember which 50x
page,
since I can’t reproduce the problem now.
Thanks for all input, anyway.
Max
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.