Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Apr 19, 2015 10:44 am 
Offline
Newbie

Joined: Sun Apr 19, 2015 10:31 am
Posts: 2
Hi Guys,

Forewarning, i'm not an experienced sys admin or anything, i'm kind of a noob!

I'm running a script on my linode that tracks traffic then redirects it elsewhere based on certain conditions. Anyways, my setup is NGINX / PHP5-FPM (MySQL is litely used, but it's only triggered when I login into panel)

I was running on Linode 16384 but recently upgraded to Linode 65536, as my CPU usage was peaking at 50-70% during peak hours, and I didn't want to deal with any more upgrades in the future.

Anyways! After the upgrade, my CPU usage is still about the same, not sure why, with the same traffic levels. On HTOP, it seems my CPU usage is pretty low, but on Linode it seems HIGH, what is the cause for the inconsistency?

Anyways, if anyone could offer an explanation or let me know if something is wrong then thank you so much!

Nginx:
Code:
user www-data;
worker_processes 20;
pid /run/nginx.pid;

events {
   worker_connections 15360;
   # multi_accept on;
}


PHp5-FPM
Code:
pm.max_children = 500
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_spare_servers = 45
;pm.process_idle_timeout = 10s;
;pm.max_requests = 500


At High Load (Linode Graph 70% CPU Usage)
Code:
ps -ylC php5-fpm --sort:rss | awk '!/RSS/ { s+=$8 } END { printf "%s\n", "Total memory used by PHP-FPM child processes: "; printf "%dM\n", s/1024 }'


Memory Used by PHP-FPM Childs: 1082M

Linode Graph

Image

HTOP

Image

One thing i'm confused about is Linode graph is showing really high CPU usage, but HTOP load averages are extremely low for a 20 core server, right?

Thank you all very much! Please let me know if more info is needed!


Top
   
PostPosted: Sun Apr 19, 2015 10:55 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
The Linode graphs are based on the number of cores your Linode has. So, for example, for a Linode 64G, which has 20 cores, the range you'll see on the graphs would be between 0% to 2000%, not 0-100%.

If your graphs are showing 80%, it means you're using 80% of only one core. You still have another 19.2 cores to go :)

-Chris


Top
   
PostPosted: Sun Apr 19, 2015 11:16 am 
Offline
Newbie

Joined: Sun Apr 19, 2015 10:31 am
Posts: 2
Chris thanks a lot! I was in a panic for nothing then haha!


Top
   
PostPosted: Tue Apr 28, 2015 8:53 am 
Offline
Junior Member
User avatar

Joined: Wed Apr 11, 2012 8:46 am
Posts: 31
Website: http://www.neomallers.com
Location: Toronto Canada
Assuming those are your usual stats (50% of a core, 1GB RAM used) your old 16gb node will probably be more than enough (or even the 8GB one)


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


Who is online

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