Search code examples
mysqlcentosmunin

How to detect what is running on MySQL every hour?


Munin showing huge spike on MySQL queries every hour but I am unable to detect what is causing this. I am running version 5.6.30.

  • Tried to enable slow running queries but can't find it there.
  • Also logged all queries and tried to see what is running on that particular time. I cannot find it.
  • Checked cronjobs but there wasn't anything related
  • Disabled almost everything on LFD & CSF
  • The event scheduler status is set to OFF

Is there any other way to find what is running every hour?

Munin graph showing sql queries:

Munin graph showing sql queries


Solution

  • Some crawlers were mining data from my website. I wasn't able to detect because requests sent from a million different IPs.

    Added captcha to website as human control and spikes gone.