Page MenuHomePhabricator

504 Gateway Time-out when modifying big articles in the Galician wikipedia
Closed, ResolvedPublic

Description

Author: elisardopr

Description:
In the Galician wikipedia when somebody tries to modify a big article, like https://gl.wikipedia.org/wiki/SIDA or https://gl.wikipedia.org/wiki/The_Beatles, always gives back a time-out error although the modification realises properly. We do not have neither idea of what could be the problem but it happens with all the articles that have a big size.


Version: wmf-deployment
Severity: major

Details

Reference
bz57677

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:25 AM
bzimport set Reference to bz57677.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for taking the time to report this!

Could you please paste the exact, complete error here?

Reproducible doing a null edit on https://gl.wikipedia.org/wiki/The_Beatles

The error message is a plain white page, with centered text:

504 Gateway Time-out

nginx/1.1.19

The page takes about 115 seconds to display this error page.

The HTML source of the page (when viewed, not the error page) displays the following:

NewPP limit report
Parsed by mw1108
CPU time usage: 29.902 seconds
Real time usage: 30.281 seconds
Preprocessor visited node count: 219514/1000000
Preprocessor generated node count: 107588/1500000
Post‐expand include size: 954440/2048000 bytes
Template argument size: 263746/2048000 bytes
Highest expansion depth: 14/40
Expensive parser function count: 0/500
Lua time usage: 0.004s
Lua memory usage: 492 KB

Note the 30 seconds time to parse the page.

At first glance, it would seem like a lot of the time is spent rendering Modelo:Obra_citada/núcleo. Optimizing that template may help to reduce the problem.

(In reply to comment #4)

At first glance, it would seem like a lot of the time is spent rendering
Modelo:Obra_citada/núcleo. Optimizing that template may help to reduce the
problem.

Additionally, enwikipedia has spent a lot of effort optimizing their cite template ( [[template:Citation]] and [[Module:Citation/CS1]] ), perhaps that work could be copied over/adapted by gl.wikipedia.org

elisardopr: Is comment 5 an option (copy Citation improvement over)?

elisardopr wrote:

(In reply to comment #6)

elisardopr: Is comment 5 an option (copy Citation improvement over)?

I'll try to adapt that changes to gl.wiki, I'll post the result.

(In reply to elisardopr from comment #7)

I'll try to adapt that changes to gl.wiki, I'll post the result.

elisardopr: Any news?

elisardopr wrote:

No, I tried to adapt the changes but I didn't make it work, and in past months I was too busy to review the problem. This is an item in my to-do list...

(In reply to elisardopr from comment #7)

I'll try to adapt that changes to gl.wiki, I'll post the result.

elisardopr: Status update welcome.

(In reply to elisardopr from comment #7)

I'll try to adapt that changes to gl.wiki, I'll post the result.

elisardopr: Status update welcome.

I'm taking this task. I'll post any progress.

First of all, I have reviewed "Modelo:Obra_citada/núcleo" template: except from the translated lines, the code is the exact same as the English Wikipedia version.

After that, I have performed one simple test: I made a null edit in "The Beatles" article in both English and Galician Wikipedia at the same time. English Wikipedia won (about 35 seconds between the two; English article is sightly shorter), but it spent a lot of time to render the page, though.

My personal conclusion after that: Locally, we can only optimize the involved templates to reduce this issue. Any other idea?


Time to load "The Beatles" article when saving the null edit:

  • English Wikipedia (144.455 bytes): about 46 seconds.
  • Galician Wikipedia (174.805 bytes): about 1 minute and 21 seconds.

A null edit on https://gl.wikipedia.org/wiki/The_Beatles finished within 12 seconds here on a cold cache.
Assuming this can be closed nowadays. If not, then please reopen.