Page MenuHomeMiraheze

Set wgMiserMode to true on all Miraheze wikis
Closed, DeclinedPublic

Description

I think we should set $wgMiserMode = true; on all Miraheze wikis. This would reduce DB loads by making all expensive query special pages read from cache instead of querying the DB on every page load.

Miser mode is a mode intended to reduce load on server farms running a large number of wikis. It is enabled on all WMF wikis.

Once we set it, we would need to set up a cron for updateSpecialPages.php (every 6 hours? 12 hours? once every day? every other day?)

This would likely boost performance. After testing this on test3, and proxying from numerous wikis, there was a largely noticeable load time difference.

Related Objects

Event Timeline

Unknown Object (User) triaged this task as Normal priority.Jun 9 2021, 03:58
Unknown Object (User) created this task.
Unknown Object (User) updated the task description. (Show Details)Jun 9 2021, 04:38
Unknown Object (User) added subscribers: Paladox, Southparkfan.Jun 9 2021, 17:59
Unknown Object (User) moved this task from Backlog to Short Term on the MediaWiki (SRE) board.Jun 9 2021, 18:04
Unknown Object (User) moved this task from Unsorted to Goals on the Universal Omega board.
Unknown Object (User) claimed this task.Jun 12 2021, 23:16
Unknown Object (User) added a parent task: T7117: Upgrade to MediaWiki 1.36.0.

Now that 1.36.0 is done we can go ahead with this by starting with opt-in wikis.

Unknown Object (User) added a comment.Jun 13 2021, 02:49

It is now set to true for a few opt-in wikis. After a couple of weeks seeing how it goes for them, we may make it global or revert the changes entirely.

As I had mentioned on IRC: a change has user-visible impact (special pages outdated by X hours or disabled functionalities), be careful there. If we want to apply a change for all wikis, it'll require further discussion.

It is now set to true for a few opt-in wikis. After a couple of weeks seeing how it goes for them, we may make it global or revert the changes entirely.

Could you please add our wiki (https://minecraftjapan.miraheze.org/) to the test wiki so that we can collect information that is more in line with actual operations?
The content of this wiki is intended to be accessed from Japan, but the average response time is not good, even considering that we are accessing the site from overseas.
If this will improve the page display speed, we will be very happy.

Now that 1.36.0 is done we can go ahead with this by starting with opt-in wikis.

I'd like this to be added to memes.miraheze.org, the load times are not the best, thus, my request to be opted in

Unknown Object (User) added a comment.Jun 21 2021, 07:32

So there seems to be a visible load difference on the special query pages (a huge improvement to those themselves) which was a goal of this, it also likely does decrease database loads but I'm not sure how to get actually statistics of this.

So there seems to be a visible load difference on the special query pages (a huge improvement to those themselves) which was a goal of this, it also likely does decrease database loads but I'm not sure how to get actually statistics of this.

You may want to use grafana.miraheze.org and Google PageSpeed Insights to check your server usage while measuring Special pages(ex:Special Wikiforum) with Google PageSpeed.

https://minecraftjapan.miraheze.org/ is fine with manipulating wgMiserMode.
How about comparing on and off with that?

Unknown Object (User) added a comment.Jun 26 2021, 03:30
In T7429#150773, @Shili wrote:

So there seems to be a visible load difference on the special query pages (a huge improvement to those themselves) which was a goal of this, it also likely does decrease database loads but I'm not sure how to get actually statistics of this.

You may want to use grafana.miraheze.org and Google PageSpeed Insights to check your server usage while measuring Special pages(ex:Special Wikiforum) with Google PageSpeed.

https://minecraftjapan.miraheze.org/ is fine with manipulating wgMiserMode.
How about comparing on and off with that?

Well measuring Special:WantedPages for example on wikis there is a huge benefit for loading on those particular pages.

Unknown Object (User) moved this task from Backlog to In Progress on the Configuration board.Jun 27 2021, 17:16
Unknown Object (User) added a subscriber: Void.Jul 25 2021, 18:17

@Void: what are your thoughts about doing this?

Unknown Object (User) added a comment.Jul 28 2021, 22:30

I think we shouldn't deploy this change globally for minimal, if any true performance improvements, which would also have negative impact on wikis' special query pages being updated less often. I don't think the community would fully appreciate a sudden change like this globally due to the impact. It seems to not have the impact I wanted when creating this task. My opinion, revert the opt-in, remove it from all current wikis, and remove the updateSpecialPages cron from puppet so it isn't being unnecessarily ran. This can be probably be reconsidered later if it is necessary but for now I don't think it is.

Unknown Object (User) closed this task as Declined.Jul 30 2021, 08:16

Declining per above. Will revert the current opt-in