Answer by warren for Finding optimum CPU limit for docker containers in Splunk

"Optimum" is going to depend greatly on your own environment (resources available, application priority, etc)

You probably want to look at a combination of the following factors:

  • avg(CPU)
  • max(CPU) (and time spent there)
  • min(CPU) (and time spent there)

I suspect your "optimum" limit is going to be a % below your max…but only if you’re spending ‘a lot’ of time maxxed-out

And, of course, being "maxed" may not matter, if other containers are running acceptably

Keep in mind, once you set that limit, your max will drop (as, likely, will your avg)

from User warren – Stack Overflow https://stackoverflow.com/questions/75486291/finding-optimum-cpu-limit-for-docker-containers-in-splunk/75487153#75487153
via IFTTT