Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 27, 2013 9:55 am 
Offline
Newbie

Joined: Sat Apr 27, 2013 9:32 am
Posts: 2
Hi All,

According to the graphs, I seem to be having quite high spikes in cpu usage. The site is having around 6,000 visitors per day and 5 mins browsing time and browsing 10 pages on average.
Linode 3072 (current plan) but I can't find where it shows how many CPU of this plan and RAM etc.
Shall I upgrade to the Linode plan with 8 CPU (8x priority) or 8 CPU (16x priority), does it help???

Here is the graphs

CPU
Image

Traffic
Image

IO
Image


Top
   
PostPosted: Sat Apr 27, 2013 10:54 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You can go up to 800% cpu, your disk io is nice and low. I don't see a need for you to upgrade. FYI all Linodes have 8 cpus. The larger plans have less guests per host so you have a lower contention ratio.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Sat Apr 27, 2013 11:30 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
I concur: it doesn't look like there's a problem with resource shortage. It also looks like CPU usage and network traffic are strongly related, so the spikes are probably just normal traffic patterns for your web site. You're also using a lot more than 100% when needed, which tells me that your application is actually able to take advantage of multiple processors -- this is a good thing(*).

For growth planning, I would start thinking about architectural changes so that you can scale horizontally (i.e. across multiple Linodes). You will not be able to exceed 800% CPU on a single Linode(**), and if you were to double your traffic, you're bound to start hitting that occasionally. This is not a problem that can be fixed by moving to a larger instance, another VPS provider, or even a dedicated server: there are physical (and practical) limits to how many cores you can put into a single server.

(*) My "real job" involves embedded systems, such as FPGAs. Simulating FPGAs is very much not something that can take advantage of multiple processors, so if I sound jealous, that's why.
(**) That's 8 CPU cores, each at 100%. Note that Linode NextGen hosts have two 8-core processors in them, for a total of 16 cores. Consider 800% a limit like the speed of light: the more you pay, the closer you can get to 800%, but you can not exceed it.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Sat Apr 27, 2013 11:51 am 
Offline
Newbie

Joined: Sat Apr 27, 2013 9:32 am
Posts: 2
obs wrote:
You can go up to 800% cpu, your disk io is nice and low. I don't see a need for you to upgrade. FYI all Linodes have 8 cpus. The larger plans have less guests per host so you have a lower contention ratio.


Image

Hi thanks for your reply, please see this error report in our google webmaster tool, we thought the vps has connection problem and cause google bot can't access our website, any idea?

And you said 800% cpu, so 300% mean our website only use 3 cpus? I thought for example we have 3x priority then we are using 3x*300%=9 cpus.


Top
   
PostPosted: Sat Apr 27, 2013 2:27 pm 
Offline
Senior Member

Joined: Mon Sep 01, 2008 5:14 pm
Posts: 92
Your site is essentially using 300% of the potential 800% available to it. That is when the other nodes on your host aren't using their share of course.


Top
   
PostPosted: Sat Apr 27, 2013 6:21 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
What do your error logs say when you have errors?

Charts are somewhat useless for determining what the actual problem is.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Sat Apr 27, 2013 6:49 pm 
Offline
Junior Member

Joined: Mon Jan 30, 2012 3:21 am
Posts: 29
Location: Glendale, CA
Your CPU usage is fine. All plans currently have at least 8 cores. When it starts to reach 700% constantly is when you may want to look at splitting the node into two linodes. If you have not rebooted since the CPU core increase, you may still have 4 cores visible to the linode (stong reason since your charts only seem to show 400% as max available).

Unless you are in Fremont, you may be eligible for a free ram upgrade (double your current plan if plan activated before April 9 2013). Fremont should get it sometime soonish...

If you are in Fremont and the errors were on Fri April 26 from ~ 14:20 EDT to ~15:45 EDT then the issue was a network connectivity issue with fremont: http://status.linode.com/2013/04/fremon ... ssues.html

If it has been a while since you restarted the machine you may have some unused upgrades.

as of Dec 14 2012: All plans got 20% additional disk space. (Disk resize required to use on current disks, or just create a new blank disk and add it to your linode. Reboot required to "attach" disk to linode.

as of March 7 2013: All plans got 10x bandwidth limits (automatic)

as of March 18 2013: All plans went to at least 8 cores (reboot linode required to activate/detect)

as of April 9 2013: All plans doubled RAM; moved to better CPUs/architecture [except for Fremont]. Special Upgrade button in manager will appear when it is available to your linode.


Top
   
PostPosted: Mon Apr 29, 2013 12:23 pm 
Offline
Senior Newbie

Joined: Tue Oct 27, 2009 9:26 pm
Posts: 15
This is all true (about having up to 800% CPU usage available) except if other people on the host are doing the same thing, you'll never get to use all that CPU time and your performance will be terrible (high steal CPU %). If you are on a lightly loaded host, you will be fine. If you are not, then all bets are off.


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


Who is online

Users browsing this forum: No registered users and 4 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