This warning shows up if NGINX ships a request to unicorn (the app server) and we notice a big delay.
Eg: (exaggerated)
- NGINX says … hey here is a request I got from a user at 1pm
- 1 hour passes
- App server get the request … yikes it too 1 hour for me to get it… I got to be overloaded.
You can control the threshold with these two settings:
DISCOURSE_FORCE_ANONYMOUS_MIN_QUEUE_SECONDS and DISCOURSE_FORCE_ANONYMOUS_MIN_PER_10_SECONDS
Most importantly if your server has lots of extra capacity, add more unicorns by increasing UNICORN_WORKERS
If a site requires login, then I guess we should change the warning to something more severe (blue screen, you are rate limited).
This is the first time I heard of a site requiring login hitting this rate limit. Agree we should do a bit better here.