I recently moved my WordPress database to a DO managed MySQL db. So, I have a single droplet connected over a private network to a single DO db. Since then, I have been seeing occasional large spikes in db throughput and latency. The spikes are very short in duration, but significant in terms of load on the db. Here is a screenshot showing a recent spike. The spikes appear to be triggered by some process on the droplet since the droplet also has a load average spike at the same time as the db spike, and also shows a corresponding data transfer spike on the private network. Here is a screenshot showing the droplet spike corresponding to the db spike shown in the other screenshot. There is no spike in public network bandwidth, so the db data seems to be requested by some process internal to the droplet. There are no cron jobs (e.g., such as a db backup) scheduled at the time of the spike. The spikes happen once or twice a day at varying times. There are no logs in syslog that correspond to the spikes.
I need to find out what process is requesting so much data from the db during these spikes, but I’m not sure how best to go about it. The spikes are too short in duration to catch them while they’re happening. Does anyone have any ideas?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!