Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic

2x360, 1x540 or 1x360?
Keep single 360 and lower memory usage  10%  [ 1 ]
Use another 360 for MySQL+Mail  60%  [ 6 ]
Upgrade existing to 540  30%  [ 3 ]
Total votes : 10
Author Message
 Post subject: 2x360, 1x540 or 1x360?
PostPosted: Mon Aug 03, 2009 8:10 am 
Offline
Senior Newbie

Joined: Thu May 07, 2009 6:13 am
Posts: 18
Morning,

I currently own a single 360 Linode which I have the following on:

Lighttpd + FCGI PHP (with execwrap/suexec), MySQL, Postfix, Dovecot, Spamassasin, SVN.

There are around 5 domains that run PHP (so 5+ PHP processes all around 20mb each), 1 of those domains has around 5 subdomains (one of which is Ruby/ROR, not PHP). They are not exactly high traffic domains, apart from one which pulls in around 1.2/1.3million hits a month but still that isn't too much.

For a while I've always been using swap space, around 180mb of it - now after some recent tweaks to MySQL I've got that swap usage to 80mb, so much healthier (and faster) than before.

I've been debating with my self if to get another 360 which will purely run MySQL + Mail, or just upgrade to a 540. This morning I did actually buy another 360 and got it mostly setup, but something is telling me to not use it and either A) Upgrade to single 540, B) Tweak existing to get lower memory usage.

So, what would you advise, keep current, upgrade or continue to use additional 360?


Top
   
 Post subject:
PostPosted: Mon Aug 03, 2009 10:20 am 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
Well, if you're actively swapping, you need to tweak more, or get more RAM. You can probably add RAM without moving up a plan.


Top
   
 Post subject:
PostPosted: Mon Aug 03, 2009 10:42 am 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
Moving MySQL off to its own linode will make it much happier. If you are going to be spending more money, another 360 will give you more bang for your buck than a single 540.

If you're hitting swap, then you're already taking a huge performance hit. The secondary cost to that is if you're swapping, you have little to no memory available for caching disk reads. MySQL _really_ benefits from disk caching, especially in read heavy applications.

Speaking of caching... if you do decide to stick with your single 360 (or even if you go with a second 360). Have you looked at other caching options? You can take a big chunk out of your memory usage by caching at a couple different levels in your stack. Look at using memcached with Lighttpd and/or MySQL, and some sort of op-code caching for your PHP stuff (I don't run PHP, so I don't know what the options there are).

~JW


Top
   
 Post subject:
PostPosted: Mon Aug 03, 2009 12:13 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
You're missing a poll option: Upgrade to a Linode 14400 :)


Top
   
 Post subject:
PostPosted: Tue Aug 04, 2009 1:34 am 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
I'd say either go with caker's suggestion or upgrade to a 540 plan and start caching stuff. Whichever is more financially available.

_________________
If it ain't broke, you didn't tweak it enough. If it is broke, use more duct tape.
http://independentchaos.com


Top
   
 Post subject:
PostPosted: Tue Aug 04, 2009 2:30 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
You may also want to investigate how much RAM that Spamassassin is using. Content-based filtering can compete for memory and CPU with databases and http servers. A Linode I work on takes care of nearly all spam just using sanity checks and greylisting. A DNS blacklist is another low-resource option to consider, but I haven't found it necessary.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group