Why is the site going down?

A place for Site Announcements, Suggestions, Bug Reports and Unadulterated Praise..
User avatar
Portland
Baaaaaaa!
Baaaaaaa!
Posts: 8828
Joined: Thu Apr 06, 2006 8:16 am 0
Location: Swinton, South Yorkshire

Re: Why is the site going down?

Post by Portland »

Firefox wrote:Perhaps the server was feeling very depressed?
:lol:
Portland 3.0.1.0 public release rolled out
User avatar
KlaxonCow
Baaaaaaa!
Baaaaaaa!
Posts: 8444
Joined: Fri Dec 13, 2002 3:46 am 0
Location: A large grassy field.

Re: Why is the site going down?

Post by KlaxonCow »

Little stoned kiwi wrote:What about a cron task to restart the the SQL server once a day?
Actually, if you try to browse the forums in the wee early hours of the morning, then it's often reporting an SQL error.

Specifically, that it can't connect to the UNIX domain socket (I don't recall the exact name but it's something like "/var/lib/mysql/mysql.sock").

This has, in fact, been happening most nights that I can see, but how long it stays down varies. So, sometimes, I'll only catch it for five minutes. Other times, it cab be an hour or so.

Then, every so often, it can last many hours - so much so, that it's still down when everyone else wakes up and looks at the forums, reporting the problem here.

But I've noticed this many more times than seems to be being reported here, as I'm often up at an early hour (basically, I've been getting up early in order to fit in a morning run before having to get ready for work).

So, actually, I think the problem is that there is already some sort of cron job that's firing most nights, which is taking the SQL server offline - perhaps for "database optimisation" or something - and this is a variable-length process.

And I suspect, if it is some sort of "optimisation / defragmentation" cron job to sort out and organise the day's posts in the database, then when it hits some of the stupidly big threads we've got on here - "hitting refresh", "youtube", "doctor who", etc. - then it's just taking so long to shuffle and optimise the data in those threads, that it ends up taking all morning or even all day to get the job done.

So rather than create a new cron job, I'd actually be checking if there's already one enabled somewhere - for phpBB or the SQL server in general - which is triggering a "wee early hours of the morning" optimisation / defragmentation operation to keep things tidy while we're all assumed to be sleeping.

Although, this is kind of tricky, because I don't know if it'd be entirely wise to just disable it. I mean, yes, that would prevent the outages but such a cron job would exist with good reason; a forum would be adding / changing / removing data to the database all the time, as we all use the forums, so a regular optimisation / clean up keeps it spritely and disabling such optimisation might just be trading the outages for overall worse performance all the time.

Already, browsing to the "hitting refresh", "youtube" and "doctor who" threads can take many seconds - where other threads are otherwise loading up straight away - so I've just got a feeling that those particular threads have got to a size that phpBB was never really designed to handle (these threads are, in some cases, well over a decade of regular postings, after all) and it's just straining and struggling under the weight.

(So maybe what might have to be done is splitting the "hitting refresh" / "doctor who" thread into smaller chunks and "archiving off" the earlier chunks - so they can still be preserved for posterity and nostalgia reading - but locking them, so that only the current "latest chunk" is actually active and the post count kept more reasonable at < 250, say.)
"Words ought to be a little wild - for they are assaults of thought on the unthinking."
- John Maynard Keynes
User avatar
zip accident
Sheepie Whore
Sheepie Whore
Posts: 13928
Joined: Sun Feb 20, 2005 1:58 pm 0
Location: Bristol, UK

Re: Why is the site going down?

Post by zip accident »

Again. :(

Is there nothing that can be done?

Oops, didn't spot this page before posting.
KlaxonCow wrote:And I suspect, if it is some sort of "optimisation / defragmentation" cron job to sort out and organise the day's posts in the database, then when it hits some of the stupidly big threads we've got on here - "hitting refresh", "youtube", "doctor who", etc. - then it's just taking so long to shuffle and optimise the data in those threads, that it ends up taking all morning or even all day to get the job done.

...

(So maybe what might have to be done is splitting the "hitting refresh" / "doctor who" thread into smaller chunks and "archiving off" the earlier chunks - so they can still be preserved for posterity and nostalgia reading - but locking them, so that only the current "latest chunk" is actually active and the post count kept more reasonable at < 250, say.)
Yesterday Yakyak was down for over 24 hours. The day concerned was a bank holiday, which suggests to me that the problem is one of physical access to the hardware, not software related at all.

On the other hand, Giant in the Playground forums limit all threads to fifty pages (of 30 posts per page) I don't know whether they're running the same version of the software or something completely different.
"My way is the way of not fighting":- the book of Enter the Dragon.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Why is the site going down?

Post by gravy »

It's because the site is on a micro instance when really it should be on something bigger.

I'll have a look at the cron job as that would likely work fine.
User avatar
Baggypants
Baaaaaaa!
Baaaaaaa!
Posts: 5328
Joined: Sun Mar 19, 2006 12:54 pm 0
Location: Salford(UK);
Contact:

Re: Why is the site going down?

Post by Baggypants »

I figured the forum was doing its own Passion play.
"The eggs, get them!"
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Why is the site going down?

Post by gravy »

In terms of the amount of posts it does feel like lent
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: Why is the site going down?

Post by Istar »

Still up and down like the proverbial. I’m a 30-year IT veteran and I’ve seen this pattern before - if we don’t do something about it, it’ll keep getting worse until either something breaks beyond repair, or there’s no one who can (or wants to) spend time keeping it limping along. And then it’ll be dead.

As I’ve said before, I know my way around AWS, relational databases, and general IT mechanics so if it’s a manpower shortage I’m available to assist (as indeed I guess are a number of others if asked).
User avatar
venusian
Baaaaaaa!
Baaaaaaa!
Posts: 6651
Joined: Wed Nov 06, 2002 2:22 pm 0
Location: South Gloucestershire

Re: Why is the site going down?

Post by venusian »

And if it's a money thing, I'm happy to chip in a few quid.
User avatar
Misfit
Sheepie Whore
Sheepie Whore
Posts: 10446
Joined: Sat Sep 28, 2002 2:43 pm 0
Location: Nottingham UK
Contact:

Re: Why is the site going down?

Post by Misfit »

venusian wrote:And if it's a money thing, I'm happy to chip in a few quid.
Yeah, me too.

Be nice if we could get that mobile skin sorted too...
User avatar
zip accident
Sheepie Whore
Sheepie Whore
Posts: 13928
Joined: Sun Feb 20, 2005 1:58 pm 0
Location: Bristol, UK

Re: Why is the site going down?

Post by zip accident »

WTF is going on?
"My way is the way of not fighting":- the book of Enter the Dragon.
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: Why is the site going down?

Post by Istar »

Yep, down again this morning.
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: Why is the site going down?

Post by Istar »

Down again for a chunk of yesterday evening. :(
User avatar
merman
Sheepie Whore
Sheepie Whore
Posts: 10943
Joined: Wed Feb 16, 2005 1:44 pm 0
XBL Gamertag: merman1974
Yahoo Messenger: andrewrfisher
Location: Skegness, England
Contact:

Re: Why is the site going down?

Post by merman »

There is also a lot of spam hitting phpBB boards right now, a new exploit to break Captchas is out there...
Twitter, Xbox, Wii U and Steam - merman1974
ZZAP is back - https://www.patreon.com/zzapmagazine
User avatar
zip accident
Sheepie Whore
Sheepie Whore
Posts: 13928
Joined: Sun Feb 20, 2005 1:58 pm 0
Location: Bristol, UK

Re: Why is the site going down?

Post by zip accident »

Istar wrote:Down again for a chunk of yesterday evening. :(
Afternoon and evening :(
"My way is the way of not fighting":- the book of Enter the Dragon.
User avatar
Portland
Baaaaaaa!
Baaaaaaa!
Posts: 8828
Joined: Thu Apr 06, 2006 8:16 am 0
Location: Swinton, South Yorkshire

Re: Why is the site going down?

Post by Portland »

Lot of boards being hit.
Portland 3.0.1.0 public release rolled out
Post Reply