Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Disk IO Spike
PostPosted: Thu May 24, 2012 2:25 pm 
Offline
Newbie

Joined: Thu May 24, 2012 2:11 pm
Posts: 4
I have linode 512 on Ubuntu 10.04. I've configured my MySQL and Apache prefork MPM like it says on here: http://library.linode.com/troubleshooti ... networking but I'm still experiencing occasional Disk IO spikes which slows/crashes my system. I've read on the other posts to keep my MaxClients around 20 and turn KeepAlive off but I don't know what I should do with the other parameters in my worker MPM. Here's what it looks like now:

Code:
<IfModule mpm_worker_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients           25
    MaxRequestsPerChild  0
</IfModule>


I can't turn my MaxClients down anymore unless I turn my ThreadsPerChild down, but I don't what it all actually means. How do I optimize it so that it'll stop crashing?


Top
   
 Post subject:
PostPosted: Thu May 24, 2012 7:48 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
If you're using the prefork MPM (which you should only be doing if you're using mod_php), the stuff in the <IfModule mpm_worker_module> section will be ignored.

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


Top
   
 Post subject:
PostPosted: Fri May 25, 2012 1:18 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
And apache2ctl -M | grep mpm should tell you whether you're using the prefork or worker MPM.


Top
   
 Post subject:
PostPosted: Fri May 25, 2012 11:44 am 
Offline
Newbie

Joined: Thu May 24, 2012 2:11 pm
Posts: 4
Vance wrote:
And apache2ctl -M | grep mpm should tell you whether you're using the prefork or worker MPM.


I'm using worker MPM


Top
   
 Post subject:
PostPosted: Fri May 25, 2012 9:44 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
In that case, MaxClients shouldn't need tuning; this is mostly applicable for those who use mod_php to run PHP scripts within Apache.

What are you using between Apache and MySQL?

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


Top
   
 Post subject:
PostPosted: Sat May 26, 2012 5:28 pm 
Offline
Newbie

Joined: Thu May 24, 2012 2:11 pm
Posts: 4
I'm using Ruby on Rails 3


Top
   
 Post subject:
PostPosted: Thu Jun 07, 2012 2:21 pm 
Offline
Newbie

Joined: Thu May 24, 2012 2:11 pm
Posts: 4
So I've tuned by worker mpm MaxClients to 25 and KeepAlive Off for 2 weeks now and it hasn't crash. Swap IO hasn't been spiking as much, spikes to 0.2k once a week. What i'm noticing is in my IPv6 traffic, I'm starting to see "Priv Out" and "Outgoing" rates. I've up my MaxClients to 50 to see how it goes. Should my MaxRequestsPerChild be tuned something else other than 0?


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


Who is online

Users browsing this forum: No registered users and 1 guest


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