Help with DigitalOcean droplet CPU spiking

Swap is often needed so servers don’t run out of memory when processes spike in memory. The reason DigitalOcean (and other hardware providers) discourage enabling swap is because it does degrade SSDs, and because they own the SSDs, they would naturally discourage it so they can save cost on replacing their hardware. However, since anyone with an above moderate use case would generally enable swapping, they do have an article on it.