Forum on New Server

A place for Site Announcements, Suggestions, Bug Reports and Unadulterated Praise..
Post Reply
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: Forum on New Server

Post by Istar »

Quite a few outages over the last few days - issues with EC2?
User avatar
fog
Baaaaaaa!
Baaaaaaa!
Posts: 6022
Joined: Sun Jan 30, 2005 1:08 pm 0
XBL Gamertag: Dense Fog
PSN: DenseFog
Location: Newcastle, England
Contact:

Re: Forum on New Server

Post by fog »

It's been down more than it's been up the last week. Same with the forum. :D
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Forum on New Server

Post by gravy »

FNARRR!

Just had a fiddle, let's see if it's a bit better :D
User avatar
fog
Baaaaaaa!
Baaaaaaa!
Posts: 6022
Joined: Sun Jan 30, 2005 1:08 pm 0
XBL Gamertag: Dense Fog
PSN: DenseFog
Location: Newcastle, England
Contact:

Re: Forum on New Server

Post by fog »

gravy wrote:Just had a fiddle, let's see if it's a bit better :D
Err no. :)

Now go and ask an adult for help. :wink:
User avatar
Deckard
Sheepie Whore
Sheepie Whore
Posts: 10746
Joined: Fri Jun 18, 2004 11:27 pm 0
Location: Falmouth, Cornwall, UK

Re: Forum on New Server

Post by Deckard »

I blame Nigel Farrage.
Now with a new Mac Mini Pro so dont judge me !
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Re: Forum on New Server

Post by Firefox »

Yeah, importing all that mucky yurrupean bandwidth from Ireland! ;)

Anyway, phpBB always seems solid, it's the database that seems to be having problems.
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Forum on New Server

Post by gravy »

Okay I've had a proper much about and decreased the amount of memory mysql can use.

Let's see if that helps :D
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Forum on New Server

Post by gravy »

Okay I've been less lazy and had a proper look. For those interested here's what was happening and here's what I did :D

The server is using nginx / mysql / php-fpm

php-fpm is pretty cool (http://php-fpm.org/) and makes thing run a bit faster. To do that it can use a bunch of memory and the other part of the equation is we're hosted on a low memory EC2 instance.

The problem was php-fpm reserving a bunch of memory pools over time and eventually causing the server to run out of memory. Luckily there's a lot of levers you can pull in the config file regarding process management and memory usage and I"ve changed a few to reduce memory load and force memory pool release over time. I've also set an upper limit on mysql's innodb buffer.

It'll probably work :D We'll see. If it doesn't then the options are (in order of less appealing)

* Fiddle some more with memory usage in the mysql / php-fpm modules
* Replace php-fpm with plain old php
* Pony up some more money so we upgrade from an EC2 micro instance

Hey you linux bods. Something the newer versions of OSX do is in memory compress pages of memory not recently used and decompress on demand. It works out pretty well and could be good for this kind of situation. Is there anything like that on Linux? Apple usually nick their best ideas from *nix :D
User avatar
gumboot
Baaaaaaa!
Baaaaaaa!
Posts: 7652
Joined: Sun Aug 26, 2007 3:42 am 0
Location: trumpstain!

Re: Forum on New Server

Post by gumboot »

As a back-up plan for the future, I suggest a web2.0 version of this embedded in the error page.
User avatar
gumboot
Baaaaaaa!
Baaaaaaa!
Posts: 7652
Joined: Sun Aug 26, 2007 3:42 am 0
Location: trumpstain!

Re: Forum on New Server

Post by gumboot »

And I assume you can swap to a file on a compressed filesystem on a ramdisk under Linux.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Forum on New Server

Post by gravy »

Well I wrote this back in the day :D

User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Forum on New Server

Post by gravy »

Just noticed something odd in the logs.

I had an old version of tapatalk still installed on the site and for some reason the forum is getting spams with POST requests to tapatalk API

There's a handful of different IP addresses doing but they're all EC2 instances. I've turned tapatalk off for bit as this seems to be what was causing php-fpm to chew up a load of resources.

I'll have a look into flood protection on the weekend :)
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Forum on New Server

Post by gravy »

Yep, sorry tapatalk fans but I'm removing it for good.

The tapatalk team seem fairly responsive in fixing security exploits but there's been a pattern of new issues popping up regularly.
User avatar
Zoot
Baaaaaaa!
Baaaaaaa!
Posts: 7431
Joined: Tue Apr 23, 2002 9:11 pm 0

Re: Forum on New Server

Post by Zoot »

Boo! (But I don't blame you really :D )
User avatar
Misfit
Sheepie Whore
Sheepie Whore
Posts: 10446
Joined: Sat Sep 28, 2002 2:43 pm 0
Location: Nottingham UK
Contact:

Re: Forum on New Server

Post by Misfit »

gravy wrote:Yep, sorry tapatalk fans but I'm removing it for good.

The tapatalk team seem fairly responsive in fixing security exploits but there's been a pattern of new issues popping up regularly.
Bugger. That'll cut down my forum activity then.

Just had to change device to see what was going on as currently computerless in Crete.
Post Reply