# How serious is "site is under extreme load, search is disabled, try again later"

**URL:** https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900
**Category:** Support
**Created:** [15 באוגוסט,‏ 2019,‏ 4:39pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900 "2019-08-15T16:39:10Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [15 באוגוסט,‏ 2019,‏ 4:39pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/1 "2019-08-15T16:39:10Z")

</div>

I’ve been getting reports of this warning message from my members. Doesn’t come up much but it is being noticed. Can I assume there is nothing to do here and it’s not as serious as it appears? “Extreme load” sounds like a huge problem. But it does go away almost immediately and search works again.

I’d appreciate any guidance on troubleshooting steps. Thanks! 🌱

> site is under extreme load, search is disabled, try again later

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [15 באוגוסט,‏ 2019,‏ 4:51pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/2 "2019-08-15T16:51:48Z")

</div>

I’m not so sure it’s something that needs troubleshooting. But maybe it could be handled differently?

[https://review.discourse.org/t/feature-when-under-extreme-load-disable-search/4538/3](https://review.discourse.org/t/feature-when-under-extreme-load-disable-search/4538/3)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [15 באוגוסט,‏ 2019,‏ 4:53pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/3 "2019-08-15T16:53:19Z")

</div>

You should be concerned, I would look at your web crawler report in the admin dashboard.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [15 באוגוסט,‏ 2019,‏ 5:06pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/4 "2019-08-15T17:06:49Z")

</div>

That will be triggered when your web requests are coming faster than your server can handle.

For example, if you have 4 unicorns and, on average, need 200ms to fully process a request, your capacity is 20 requests per second.

If, for a moment, you get 40 requests per second, the extra requests will sit in a queue waiting, and that message will be show. Also, you can’t go blindly setting up more unicorns, as the process to fully answer a web request involves a lot of moving parts that should be carefully evaluated.

Discourse gained a lot of those graceful degradation features recently as we work to scale out and handle some crazy level of traffic for the largest Discourse instances on the internet.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [15 באוגוסט,‏ 2019,‏ 5:34pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/5 "2019-08-15T17:34:04Z")

</div>

Looks like we did get an increase in web crawler page views in recent days. But I’m not sure what if anything there is I can or should do about it. Personally, I am ok with a notice to members from time to time when the server is under higher than normal load, preventing searching temporarily. But maybe the “extreme load” messaging could be moderated a bit, to say “server is busy”.

 ![29%20AM](https://global.discourse-cdn.com/meta/original/3X/7/2/72f35f58b3a309b80b471ebc23006099db53752c.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [15 באוגוסט,‏ 2019,‏ 8:55pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/6 "2019-08-15T20:55:51Z")

</div>

> [@tobiaseigen](#):
>
> But I’m not sure what if anything there is I can or should do about it

Blacklist the rogue crawler user-agent in site settings. There are a lot of really bad crawlers on the internet these days.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [16 באוגוסט,‏ 2019,‏ 6:39am UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/7 "2019-08-16T06:39:39Z")

</div>

Hmm, only 1800 pageviews in 24 hours by a crawler should not put _that_ much extra load on your server though. It might be worth opening your access log and just watch the requests come in when this happens, it could point to the real issue. It could be someone trying to hack you, or hammering your API with requests.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [16 באוגוסט,‏ 2019,‏ 2:27pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/8 "2019-08-16T14:27:48Z")

</div>

I Just got a report of another similar looking notification. We are doing an AMA and have a few more people than usual reading and posting in the forum, but I am not convinced that this is extreme load. Maybe a plugin like [Discourse Who's Online](https://meta.discourse.org/t/whos-online-plugin-discourse-whos-online/52345) is causing additional load?

 ![51%20AM](https://global.discourse-cdn.com/meta/original/3X/8/8/88174d750006c2174e72ed29bc863880db05d407.png)

> [@bartv](#):
>
> Hmm, only 1800 pageviews in 24 hours by a crawler should not put _that_ much extra load on your server though. It might be worth opening your access log and just watch the requests come in when this happens, it could point to the real issue. It could be someone trying to hack you, or hammering your API with requests.

Thanks! I will look into this now.

> [@Falco](#):
>
> Discourse gained a lot of those graceful degradation features recently as we work to scale out and handle some crazy level of traffic for the largest Discourse instances on the internet.

Is there a way to disable these in an admin setting and just let people wait if it is getting slow? I think our site is still not especially busy.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [16 באוגוסט,‏ 2019,‏ 2:30pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/9 "2019-08-16T14:30:42Z")

</div>

If performance degrades to the point of timeouts it won’t feel slow, it will just feel broken.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [17 באוגוסט,‏ 2019,‏ 8:21am UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/10 "2019-08-17T08:21:50Z")

</div>

Ignoring these warnings is definitely not a good idea!

---

<div class="post-metadata">

### Author: ![thefreekick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thefreekick/32/43228_2.png) [@thefreekick](https://meta.discourse.org/u/thefreekick)
#### Post date: [18 באוגוסט,‏ 2019,‏ 4:45pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/11 "2019-08-18T16:45:11Z")

</div>

I’m getting this extreme load notification a lot recently.

I have a sports forum and it’s usually when there are people commenting on the one topic about a particular match at the same time. Is there any guide or help on what I can check to look at logs or the server to see if it’s up to speed. It wasn’t a problem until the last few weeks.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [18 באוגוסט,‏ 2019,‏ 9:00pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/12 "2019-08-18T21:00:54Z")

</div>

Do you think we could have regressed on logged-in user posting performance @sam?

---

<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: [18 באוגוסט,‏ 2019,‏ 10:55pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/13 "2019-08-18T22:55:35Z")

</div>

I am seeing an N+1 on meta for sure that we need to fix ASAP

Will log some items to get this sorted. That said, once site is overloaded admins have the ability to tweak 2 things.

1. You can give the instance more resources, (more memory for PG or more unicorn workers)

2. You can adjust the anon threshold per:

> <https://github.com/discourse/discourse/blob/2fd654a4aecd477c6a10a98294fa55bad6a91f70/config/discourse_defaults.conf#L222-L225>

DISCOURSE\_FORCE\_ANONYMOUS\_MIN\_QUEUE\_SECONDS and DISCOURSE\_FORCE\_ANONYMOUS\_MIN\_PER\_10\_SECONDS

---

<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: [19 באוגוסט,‏ 2019,‏ 6:25am UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/14 "2019-08-19T06:25:50Z")

</div>

I did fix one N+1 in the discourse-voting plugin here:

[https://github.com/discourse/discourse-voting/commit/9b4f233b9d33a946f626597aaf3863d2305b8809](https://github.com/discourse/discourse-voting/commit/9b4f233b9d33a946f626597aaf3863d2305b8809)

Will see if anything else yells out

---

<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: [19 באוגוסט,‏ 2019,‏ 7:27am UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/15 "2019-08-19T07:27:27Z")

</div>

Found another N+2 here:

[https://github.com/discourse/discourse/commit/accbbded15974846523c3aeca85a59454e3f2f05](https://github.com/discourse/discourse/commit/accbbded15974846523c3aeca85a59454e3f2f05)

Looking to see if anything more pops up.

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [19 באוגוסט,‏ 2019,‏ 10:18am UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/16 "2019-08-19T10:18:45Z")

</div>

Q: What is an “N+1” ? Although i’m a dev (java), i don’t think i ever came upon this term before.

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [19 באוגוסט,‏ 2019,‏ 11:06am UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/17 "2019-08-19T11:06:37Z")

</div>

Here is a (more or less Java-related) article that explains this issue:

> **[N+1 problem in Hibernate & Spring Data JPA](https://www.javacodemonk.com/what-is-n-1-problem-in-hibernate-how-will-you-identify-and-solve-it-894097b9)**
>
> N+1 problem is a performance issue in Object Relational Mapping that fires multiple Select Queries in database for a single select query at application layer. Hibernate provides multiple ways to identify and prevent this problem.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [3 במרץ,‏ 2023,‏ 8:08am UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/18 "2023-03-03T08:08:43Z")

</div>



---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [3 במרץ,‏ 2023,‏ 6:39pm UTC](https://meta.discourse.org/t/how-serious-is-site-is-under-extreme-load-search-is-disabled-try-again-later/125900/19 "2023-03-03T18:39:21Z")

</div>


