Home > Net >  Can I set the pod to use max request CPU from the beginning?
Can I set the pod to use max request CPU from the beginning?

Time:03-03

I am using Openshift 4, CPU Request: 0.2, Limit 0.4.

From the monitoring, I can see the CPU usage started from 0.1, and increased gradually. Is it because that there is a machanisim to prevent over reserve the CPU usage?

Can I setup that the pod to use the max request CPU from the beginning, and adapt to Limit as fast as possible?

enter image description here

CodePudding user response:

The max limit is already available from the beginning (presuming that the node has the CPU available to give). OCP is using CFS to enforce that limit, and CFS doesn't have anything that gradually kicks in, CFS only has one thing it considers: the configured limit.

As for why you are seeing this in your monitoring, I'm not sure. But my first guess would be that that graph is using a moving average. (And thus, since it's a moving average it will converge towards the actual usage.)

  • Related