Patent attributes
In an approach to limiting container CPU usage based on network traffic, a packet CPU usage for each packet type of one or more packet types is determined. A network CPU usage is calculated for a specific container based on the network CPU usage for each packet type. A container process CPU usage and a total container CPU usage are calculated for the specific container, where the total container CPU usage is the sum of the network CPU usage and the container process CPU usage. Responsive to determining that the total container CPU usage exceeds a threshold, the container CPU consumption quota and the container network bandwidth setting for the specific container are adjusted to reduce the total container CPU usage, using a set of pre-configured parameters.