Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Nov 11, 2010 2:03 pm 
Offline
Newbie

Joined: Thu Nov 11, 2010 1:55 pm
Posts: 2
I have a linode512, and recently I'm serious problem with I / O rate, I am monitoring the server using Munin and he always shows me the server using minimal resources, and a time to another (not always at times of peaks) it stops responding and I start getting emails from I / O rate on disk.

On this server I am running four projects in django / mysql / apache without a huge traffic.

There were many errors in the logs (urls old that no longer exist), then thinking that the problem would be written in the logs on disks I commented the lines for the access log of apache, but the problem persists.

Has anyone experienced this and can help me?


Top
   
 Post subject:
PostPosted: Fri Nov 12, 2010 3:20 am 
Offline
Junior Member

Joined: Tue Jul 13, 2010 8:28 pm
Posts: 28
Do you mean the logs are still being written to disk or despite the fact that you turned off logging you still have high IO? In the first case, I'd ask if you restarted apache. In the second case, I'd suggest the following:

Inspect your code: your apps might be hitting the disk on every request. look out for stuff like that and fix it.

Caching: Django has helpers that assist in caching. You can alter your code to do caching, or if you're using contributed apps look into seeing if you can turn on caching for them (you'll of course need to get memcache running for that)

Template cached loader: Search for "django.template.loaders.cached.Loader" in the following page: http://docs.djangoproject.com/en/1.2/ref/templates/api/ so that Django doesn't have to hunt through your filesystem every time a template needs to be fetched.
__MAKE SURE YOU READ THE NOTE ABOUT THREAD SAFETY. MAKE SURE YOU UNDERSTOOD THAT NOTE AND THE PAGE IT LINKED TOO__

Also, are you sure there's no pattern to when the server stops responding? You might have a mysql backup job that's locking all your tables, or it could be a dozen other things.


Top
   
 Post subject:
PostPosted: Thu Nov 18, 2010 7:25 am 
Offline
Newbie

Joined: Thu Nov 11, 2010 1:55 pm
Posts: 2
hi,

if this have a pattern I have not discovered. I'll take a look at projects that are running and I will add to the cache at least with more hits to see if it solves my problem. Thanks.


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


Who is online

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