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)

task
Not set
normal

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
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/
There are a lot of huge js files, one is over 1MB and several others over 300kB.
The initial page load takes 30+ seconds for me, the js afterwards is just a few seconds then. According to network panel in devtools.
Note, this is just the main page, the other pages load OK-ish.
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
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.
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.

Attachment

General

Created:
Updated:
Size: