I am aware that 100% CPU usage constantly can cause issues with other VMs and have my droplet disabled; but I am performing long encoding tasks so I would like to know what is the max usage I can safely use sustainably.

Is it safe to use cpulimit to keep it around 80% or something lower like 40-50%?

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.

×
Submit an Answer
1 answer

Hello,

If the CPU usage on your droplet is somewhere between 70-85% this should not be an issue and the processes causing the CPU usage should not be terminated. You can also tweak the lfd service to make sure that the process will not be killed. You can also go over the mentioned limit, but this can cause performance issues for you as well.

As long as you don’t go to 100% CPU usage for a long period of time, everything will be okay.

DigitalOcean is doing proactive monitoring and will see if your droplet is having 100% CPU usage all the time and may limit the CPU capacity of the droplets displaying this behaviour. Since each droplet shares physical hardware with other droplets, constant 100% CPU use degrades the service quality for other users on the same node.

Kind regards,
Alex

  • Thanks for the answer! At the moment I am using cpulimit to throttle the process down to 70% so that there is ample margin till 85% :)

    • Hello,

      You should be totally fine with this CPU usage. However, keep in mind that these are soft limits. If the usage is causing any issues our team will get in touch with you on that matter.

      Regards,
      Alex