MOAR Server Changes

A place for Site Announcements, Suggestions, Bug Reports and Unadulterated Praise..
Post Reply
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

MOAR Server Changes

Post by gravy »

Okay!

Another big change. The short is that we're now running under a pretty different configuration than before. Everything should still be fine but if youd do experience any problems please report them here :)

Feedback on notification mails would be handy in particular and also general speed of the site :)

Longer Version
When I set this up last week I was pretty new to the whole thing and did so by buying a pre-configured AMI that had LAMP already installed along with phpBB3. That was cool but what I didn't like so much was:
  • Apache again (had a bunch of historical issues with the forum where too many concurrent logins borked it)
  • The image came with some minor charges on a per house basis. It's okay but I know how to configure this stuff anyways :)
  • Really odd file layout. The guys that made their image had a very non standard way of putting it all together that wasn't like any other linux distro I'd seen
So. I've changed it all. We're now running on a micro EC2 instance with no persistent data that I built. The http server is now nginx, about the same speed as Apache but much more frugal in terms of memory and CPU usage. The database and html for the site live on it's own EBS that's mounted by the EC2. Makes it a lot easier to sort the backups the way I want.

There's a chance that using a micro instance is a bit optimistic. We'll see. I can easily change that if it ends up being the case :D

Once again utterly bowled over by how this stuff works, the flexibility it provides and the ease in pulling things about and trying stuff out with what turns out to be an excellent saftey net.

gaz
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: MOAR Server Changes

Post by Istar »

The only real differences between t1.Micro and m1.Small are a smaller RAM allocation (0.6GB instead of 1.7GB) and a variable CPU allocation. I'd be surprised if YY loaded it beyond capacity. And if it does, stop/change/start. I have bigger stress deciding whether to have plain or hazelnut coffee. ;)
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: MOAR Server Changes

Post by gravy »

I've just chucked on a PHP cache thing that seems to have helped general speed and will also keep CPU usage minimised :D

This stuff rocks

Quite liking Nginx as well. Seems a lot more logical and easier to configure than Apache.

So yeah, it's weird: cheaper, faster and better. Not often you get solutions of that ilk
User avatar
KlaxonCow
Baaaaaaa!
Baaaaaaa!
Posts: 8444
Joined: Fri Dec 13, 2002 3:46 am 0
Location: A large grassy field.

Re: MOAR Server Changes

Post by KlaxonCow »

gravy wrote:Feedback on notification mails would be handy in particular and also general speed of the site :)
I'm not getting any notification emails, I'm afraid.

But, otherwise, it all seems smooth and snappy on the forums themselves.
"Words ought to be a little wild - for they are assaults of thought on the unthinking."
- John Maynard Keynes
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: MOAR Server Changes

Post by gravy »

Could you try replying to this topic please?
User avatar
KlaxonCow
Baaaaaaa!
Baaaaaaa!
Posts: 8444
Joined: Fri Dec 13, 2002 3:46 am 0
Location: A large grassy field.

Re: MOAR Server Changes

Post by KlaxonCow »

Yes, that worked. I was brought here by a notification email, so it seems to be fine now.

Thanks for sorting that out. :D
"Words ought to be a little wild - for they are assaults of thought on the unthinking."
- John Maynard Keynes
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: MOAR Server Changes

Post by gravy »

No probs :D So if the instance reboots it wont send mails no more. I'll have to take another snapshot of the server to some point soon which will make the change persistent. Just means the forum coming down for around 10 mins
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Re: MOAR Server Changes

Post by sack »

If one of those grumpy QA bastards can post and it doesn't break then you've probably got it set up right
User avatar
Surfr
Baaaaaa!
Baaaaaa!
Posts: 4403
Joined: Sun Feb 02, 2003 2:00 pm 0
Yahoo Messenger: SurfrDanField
Location: Aberystwyth
Contact:

Re: MOAR Server Changes

Post by Surfr »

gravy wrote:No probs :D So if the instance reboots it wont send mails no more. I'll have to take another snapshot of the server to some point soon which will make the change persistent. Just means the forum coming down for around 10 mins
sendmail/postfix/whatever not configured to come up on boot in the default runlevel?
Meddw ar y lawnt mewn cyfddydd niwclear
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: MOAR Server Changes

Post by gravy »

Nah it's a configuratio thing with php-fpm. The defualt ini file doesn't specify a command for php to use for mail.

I've changed it so it does but the AWS works is that you can EC2 instances that just boot from the equivalent of a custom linux live CD, it has no persistent store :D

I need to remake the image it boots from to include the ini change. That'll mean the sever being switched off, cloned to an image and then rebooted
User avatar
Surfr
Baaaaaa!
Baaaaaa!
Posts: 4403
Joined: Sun Feb 02, 2003 2:00 pm 0
Yahoo Messenger: SurfrDanField
Location: Aberystwyth
Contact:

Re: MOAR Server Changes

Post by Surfr »

Ah right. Sounds interesting. I've been playing with RedHats new PaaS offering, Openshift this week but never actually looked at an EC2 instance.
Meddw ar y lawnt mewn cyfddydd niwclear
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: MOAR Server Changes

Post by gravy »

Worth a try, the micro instances are free for a year with a new account
Post Reply