# Onze discourse overbelast door een aangepaste plugin. Help me alsjeblieft

**URL:** https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696
**Category:** Self-hosting
**Tags:** hosting
**Created:** [20 augustus 2022 om 09:49 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696 "2022-08-20T09:49:57Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 09:49 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/1 "2022-08-20T09:49:57Z")

</div>

We have around 12000 users.  
I have run discourse on a 2core 4g server for a month. And It has 30M bandwidth.  
I believe it should be enough. At first, it runs well. However, the server always shows 90% usage in the past few days. It usually takes me 4-5 seconds to open the latest page.  
I disable all plugins and components on [safe mode](https://meta.discourse.org/t/53504?silent=true), It is still very slow.  
How could I do?

---

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 09:57 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/2 "2022-08-20T09:57:58Z")

</div>

not even a peak time

 ![屏幕快照 2022-08-20 18.53.18](https://global.discourse-cdn.com/meta/original/4X/9/9/0/9900ea6eca4f7f55b55f9fd06f36ac61513c014f.png)

latest page response  
(Oh,It gets slower. around 6.5 seconds)

 ![屏幕快照 2022-08-20 18.55.19](https://global.discourse-cdn.com/meta/original/4X/8/3/f/83f14b096191ba4049468a93d083713cfb9d7cca.png)

---

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 10:01 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/3 "2022-08-20T10:01:16Z")

</div>

databse size, tiny 😑

 ![屏幕快照 2022-08-16 19.44.26](https://global.discourse-cdn.com/meta/original/4X/e/9/7/e97ac37453fe2bfe353af98356c9b75cec543abe.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [20 augustus 2022 om 10:02 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/4 "2022-08-20T10:02:10Z")

</div>

12000 is a fair amount. How many page views a day? How many concurrent users?

I’d at least double the core count.

---

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 10:07 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/5 "2022-08-20T10:07:46Z")

</div>

Thank you robert!  
This is the page views.

 ![屏幕快照 2022-08-20 19.03.50](https://global.discourse-cdn.com/meta/original/4X/5/c/9/5c90e5d1259846df8552903c96a0af5138107039.png)

I’m not sure about the num of concurrent users.

```plaintext
:/var/www/discourse# netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c
    191 ESTABLISHED
     16 FIN_WAIT1
      7 FIN_WAIT2
      2 LAST_ACK
      7 LISTEN
      2 SYN_RECV
    335 TIME_WAIT

```

Now there are about 200 established connections.  
Is discourse very cpu dependent? 🧐

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [20 augustus 2022 om 10:09 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/6 "2022-08-20T10:09:01Z")

</div>

Oh wow, that’s a LOT of page views!!! Most by logged in users.

I think it’s pretty obvious your two cores are maxed out.

Upgrade your VPS to 4 cores if not 8. You have seriously outgrown this server.

Do it fast to avoid losing your loyalty.

---

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 10:13 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/7 "2022-08-20T10:13:27Z")

</div>

Oh, thanks!  
Our current vps is using Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz (2 core) from AliCloud. Could you please give me any recommendation for cloud service provider?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [20 augustus 2022 om 10:14 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/8 "2022-08-20T10:14:31Z")

</div>

Why not stick with Alicloud to begin with? Any problems with them? Do they offer a bigger server? Easier to migrate using same credentials and account.

I love Scaleway personally but their locations in Europe may not suit you. (That said I have a lot of US users and you can always add a CDN)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [20 augustus 2022 om 10:26 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/9 "2022-08-20T10:26:35Z")

</div>

You could also add a CDN if you don’t already use one:

> [@Should I add CDN despite my server is close to my users?](https://meta.discourse.org/t/should-i-add-cdn-despite-my-server-is-close-to-my-users/170974/2):
>
> Only way to find out is test slight_smile Not expecting any major advantages, but a CDN will reduce some of the load on your application server. Also you may have multiple POPs in South Korea so you would possibly serve the files closer to the end users if you pick the right CDN.

---

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 10:27 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/10 "2022-08-20T10:27:21Z")

</div>

We need 4 cores/8 cores. AliCloud provide 4 cores vps with a price of 70 USD(monthly) 😑 and NO 8 cores plan.  
My alternatives are hetzner, contabo, netcup,greencloud (almost from Germany, and yes they provide with cheap prices)  
Have you ever hosted a discourse on their servers? Thank you! 😳

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [20 augustus 2022 om 10:28 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/11 "2022-08-20T10:28:19Z")

</div>

No but Hetzner is a great choice.

Please checkout [scaleway.com](http://scaleway.com) if you can host in Europe.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [20 augustus 2022 om 10:34 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/12 "2022-08-20T10:34:31Z")

</div>

Here’s a 4 core with 500Mb/s bandwidth and 8GB RAM on Scaleway.

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/e/a/5ea655a12c0cffa3f2145ff4b30701812c356b7b.png)

---

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 10:36 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/13 "2022-08-20T10:36:20Z")

</div>

Thank you! I’ll look at scaleway.  
Could you please tell me about your plans and the size of the discourse(about concurrent users etc.) as a reference?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [20 augustus 2022 om 10:38 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/14 "2022-08-20T10:38:03Z")

</div>

Mine is much much lower. I have 5,000 users, only 10 active at any one time max. It’s a pretty niche board. I would not use it as comparison. It survives on a 2GB, 2 Core machine.

---

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 10:42 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/15 "2022-08-20T10:42:30Z")

</div>

I believe we need 8 core vps because the number of users is growing rapidly every day.  
Scaleway is a very good choice. Thank you very much Robert!

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [20 augustus 2022 om 10:43 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/16 "2022-08-20T10:43:28Z")

</div>

No problem. I’m very curious about the outcome, please post back your stats here post migration.

Then maybe add a CDN too and post stats after?

Good luck! (you’ll be fine, great problem to have!).

---

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 10:48 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/17 "2022-08-20T10:48:04Z")

</div>

> [@merefield](#):
>
> I’m very curious about the outcome, please post back your stats here post migration.

Of course I will post it 🤗  
Maybe I should change category of the topic to “hosting” 🧐

---

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 10:54 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/18 "2022-08-20T10:54:46Z")

</div>

Oh sorry.  
By the way, do you think we need vps with Ryzen cpu?(or normal) 🥲

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [20 augustus 2022 om 10:55 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/19 "2022-08-20T10:55:35Z")

</div>

Any X86 VPS will be fine. 8 Core is good idea.

---

<div class="post-metadata">

### Author: ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)
#### Post date: [20 augustus 2022 om 11:05 UTC](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696/20 "2022-08-20T11:05:54Z")

</div>

ok, I’ll look at 8 core ones.  
Thanks!

[Next page](https://meta.discourse.org/t/our-discourse-overload-because-of-a-custom-plugin-please-help-me/236696.md?page=2)
