TurnKey Linux Virtual Appliance Library

Drupal 7 running slow as lazy dog on aws

ansondparker's picture

Hi all - my d7 site was running aces with mostly standard modules on a micro account until about 4pm this afternoon - for the past 8 hours it has been brutal.  like 100% CPU tacked out on basic request.  The site is in maintenance mode and there are no special modules - it's heinous.  Anyone got some tips on debugging or determining whether it's AWS, or me, or YOU (j/k turnkey is probably the only part of the system I'm confident in) or wt??


Thanks (and thanks again for turnkey, it rocks)

Jeremy Davis's picture

The shortcomings of Micro AWS...

Assuming you're running a Micro instance that is...!

Once your appliance hits 100% CPU for more than about 5 seconds running you get throttled back to ~<5% CPU. What seems to happen then is that requests and other tasks back up, thus the appliance gets stuck. Everytime the throttling drops off, the CPU hits 100% straight away (to process outstanding stuff that has been backing up) so it gets throttled again...

So, solutions? Possibly the easiset (and maybe even best - depending on how much usage you expect your server to get) is to upgrade your server to a Small one. Another option is to look at AWS auto-scaling (I know nothing about it but another user mentioned it) - from what I can gather it'll launch additional load balancing Micro servers when required. The only other option that I am aware of would be to install something to thottle the CPU internally (so it never hits 100%). Something like this. Also, some time ago I posted about a daemon I found here (which I don't know much about, just found it and shared...) I have read of that approach being successful but haven't tested myself.

While this thread involves WordPress, it probably mostly applies to any Micro appliance.

So if it's not a Micro instance, then I apologise (and it's obviously not that...)

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)