Question
How to debug DO managed DB throughput/latency spikes?
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?
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.
×