Report this

What is the reason for this report?

Flask Droplet Random CPU Spikes

Posted on April 9, 2024

Recently, I got asked about a random CPU spike on a Flask Droplet, which was configured with a single CPU.

This unexpected behavior prompted me to look deeper into potential causes.

Upon investigating, I discovered that the unattended-upgrades feature, which Ubuntu uses to automatically apply security updates, was the culprit behind these CPU spikes.

Here is what I did to further investigate the random CPU spikes.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.