Closed
Bug 1266289
Opened 9 years ago
Closed 8 years ago
Figure out why Discourse is so slow
Categories
(Infrastructure & Operations :: Community IT: Discourse, task)
Infrastructure & Operations
Community IT: Discourse
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: tanner, Unassigned)
Details
Attachments
(2 files)
It takes several seconds to load the main Discourse forum, which seems strangely slow.
(In reply to Tanner Filip [:tanner] from comment #0)
> It takes several seconds to load the main Discourse forum, which seems
> strangely slow.
Yeah, yikes: http://www.webpagetest.org/result/160421_5R_1RWA/1/details/#request14
| Reporter | ||
Comment 2•9 years ago
|
||
Aha, that makes sense. Not long ago we re-enabled the "Long polling" setting, because we couldn't remember why it was disabled. Just disabled it again and it *seems* to be loading faster. Still want to investigate why this causes problems if it's the issue
(In reply to Tanner Filip [:tanner] from comment #2)
> Aha, that makes sense. Not long ago we re-enabled the "Long polling"
> setting, because we couldn't remember why it was disabled. Just disabled it
> again and it *seems* to be loading faster. Still want to investigate why
> this causes problems if it's the issue
Still takes around 30 seconds over a high-speed connection :-(
http://www.webpagetest.org/result/160422_T1_1CWM/
| Reporter | ||
Comment 4•9 years ago
|
||
There are a lot of huge js files, one is over 1MB and several others over 300kB.
Comment 5•9 years ago
|
||
The initial page load takes 30+ seconds for me, the js afterwards is just a few seconds then. According to network panel in devtools.
Comment 6•9 years ago
|
||
Note, this is just the main page, the other pages load OK-ish.
Comment 7•9 years ago
|
||
I used Firefox dev tools to do a performance comparison between our own discourse front page [1] and the Discourse Meta categories page [2] (since that's the page we use as our front page).
The comparison is pretty shocking, we're over 25s slower than them. The biggest discrepancy is the time it takes to complete the xhr requests, which I'm pretty sure is how the content of the page is loaded. This would imply that either our server or database is slow as hell. Either way, we need to be throwing more server resources at Discourse to speed it up.
[1] https://discourse.mozilla-community.org/
[2] https://meta.discourse.org/categories
| Reporter | ||
Comment 8•9 years ago
|
||
Well, I'm going to take a guess that the RDS server is at least part of the bottleneck. We need to migrate to a new one sooner rather than later.
| Reporter | ||
Comment 9•8 years ago
|
||
Discourse was moved to the Mesos cluster a few months ago, and with that came a DB upgrade. This seems to be fixed.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•