0
votes

Does anybody have an idea why we have these hourly spikes in CPU usage on our Amazon RDS database? We don't have any crons running every hour so it seems to be some internal RDS stuff because it's exactly every hour.

  • Does RDS do some index updates or something every hour?
  • What's the best way to find out what is causing this?

RDS hourly spikes

2
In this case, were you using a high-availability configuration of MySQL? - Jeff Stice-Hall
did you ever figure out what was going on?? - Christopher Reid

2 Answers

0
votes

We have a number of RDS instances running, from micros up to larges, and I don't see this pattern anywhere - so I suspect that it is something in your code.

Probably the best option to figure out what is going on is to be logged into the database at the top of the hour, and monitor what is connecting and what they're doing. For mysql, you can probably start with SHOW FULL PROCESSLIST. There are monitoring tools that will monitor this for you.

0
votes

You can enable slow and general log on MySQL server and analyze them using pt-query-digest

also there are some commercial tools like MEM and MONyog which can be handy in monitoring SQL queries.