# When a site requires login, do not show "site is overloaded" banner, there is no anon access

**URL:** <https://meta.discourse.org/t/when-a-site-requires-login-do-not-show-site-is-overloaded-banner-there-is-no-anon-access/156688>\
**Category:** Feature\
**Created:** [3 juli 2020 om 12:01 UTC](https://meta.discourse.org/t/when-a-site-requires-login-do-not-show-site-is-overloaded-banner-there-is-no-anon-access/156688 "2020-07-03T12:01:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [6 juli 2020 om 08:53 UTC](https://meta.discourse.org/t/when-a-site-requires-login-do-not-show-site-is-overloaded-banner-there-is-no-anon-access/156688/4 "2020-07-06T08:53:14Z")

</div>

> [@meriksson](#):
>
> First, the server does not seem to be under extreme load. The last time I saw the warning our server monitoring showed that CPU load peaked at 24%, memory usage was just above 50% etc. As far as I know, no noticeable decrease in performance for users. So I wonder: What is the threshold for this warning and is it reasonably calibrated?

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:

> <https://github.com/discourse/discourse/blob/38a30a6e961dc28d473709d47c5a357eab64998d/config/discourse_defaults.conf#L227-L230>

`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.

---

_[View the full topic](https://meta.discourse.org/t/when-a-site-requires-login-do-not-show-site-is-overloaded-banner-there-is-no-anon-access/156688)._
