Brickimedia / brickimedia

Brickimedia Source Code
http://www.brickimedia.org
13 stars 4 forks source link

Server has crashed again #402

Closed NovaFlare closed 9 years ago

NovaFlare commented 9 years ago

Constantly getting hit by error 502's and 504's and unable to get onto the site. Last time Meiko said it was a one-line fix and it should work after that for a couple of months, I don't know what the code is though.

(And is there any chance of getting this fixed permanently?)

neoncitylights commented 9 years ago

(disclaimer: I'm not an expert with server thingies. So there might be stuff below that is incorrect. :P)

Since there might be too much stress on the server from loading so many pages, there would have to be a server upgrade. I have no idea of what our financial stance is though, but if you happen to know that'd be great :D Otherwise, you'd have to ask Ajraddatz since he handles that. Edit: Forgot to mention, the SMW methods like Template:ThemeTable and Template:ThemeTable/renovations would also affect the server since they're so resource-extensive.

Did a little bit of research (although I'll have to do more research), and found an article that provides some assistance; maybe we can try to use some of the solutions that it provides? https://semantic-mediawiki.org/wiki/Speeding_up_Semantic_MediaWiki

If that doesn't work or isn't good enough, then the next step to try could be alternatives to SMW.

NovaFlare commented 9 years ago

Why couldn't I ever find those pages? :P

We could definitely do that first suggestion (set $smwgQEqualitySupport to SMW_EQ_NONE) which is meant to give "drastic" search improvments. If the site ever comes back, I can take a look at that LUA-based templates suggestion too- most of the problems I'm guessing are described in the "slow query formatting" area.

But... yeah... we could really do with that temporary fix right about now... @georgebarnick @Ajraddatz ...

neoncitylights commented 9 years ago

I took a look at Lua, and the major downside I found is that its not very user friendly. :/ A Wiki is a site where everyone can edit, and this doesn't ring true to this Lua language. First off, lets look at this documentation: https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual There is a lot to learn and cover, which is definitely not an exaggeration. Being realistic, there's a low chance for the users to take their time and learn a whole new programming language. Oh, and you'd have to take the time to convert the templates from wikitext to Lua too, since it's not done automatically. Here's an example of a Lua module: https://www.mediawiki.org/wiki/Module:Message_box

And now, I can't really tell if this version is even faster, because on https://www.mediawiki.org/wiki/Lua_scripting, it directly says "complex templates have caused performance issues and bottlenecks." This contradicts whats said on the smw page, which is a bit confusing.


You know what actually, it's not as if Wiki markup is user-friendly either. :P Take an example such as: https://en.wikipedia.org/w/index.php?title=Template:Citation/core&oldid=433551562&action=edit And http://en.brickimedia.org/index.php?title=Template:Infobox&action=edit