CPU utilization 100% for docker deployed in my ec2

Hi,

I’m working on a project which uses multiple docker container via kubernetes in an ec2 instance. Te maximum number of containers that are running at a time will be almost 22. The ec2 instance type that I’m using is m4.large with 8GB RAM and OS using is CoreOS. On checking the utilization details of my ec2, I can that the CPU utilization of my instance is 100% where as the read/write operation performed during this period is almost 0%.

On executing top command in my ec2 instance, I can see that the dockerd process is using huge amount of CPU compared to other process.
On checking docker stats, I can see that the overall cpu utilization never exceed more that 20%

Can someone help me to understand whats causing this issue.

Thanks In advance.

Hi!

Any update on this? A have the same thing here and don’t know what can I do at all.

I tried updating Core OS version to latest and restarted my cluster. After that the frequency of error got reduced. Still not sure what went wrong.
Hope it works for you.