[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Better understanding of limits and quotas

Title: Re: Better understanding of limits and quotas
Hi Thorvald.

I found this blog very helpfully.


What's the output of

oc describe <FAILED-POD>
oc get ev

It's also one of the trickiest part of oc & kube for me.


on Montag, 14. August 2017 at 17:39 was written:

Hi Derek,

Thank you for your reply.

But as I mentioned in my first post I requested following:
request.cpu: 1
limits.cpu: 2
request:mem: 256Mi
limit.mem: 512Mi

So it wasn't a pod without any resource request. There was an request but it just didn't work or I don't understand the entire concept.

Thank you.

On 14 August 2017 at 15:56, Derek Carr <
decarr redhat com> wrote:

If you create a pod with no resource requests, the pod has BestEffort QoS.  This means it has no resource guarantees, and will get variable performance based on what else is happening on the machine running your pod.

For your scenario, it appears you are trying to run builds as "BestEffort" workloads.

To support this, you can create a BestEffort quota on #of pods, and alternately update your compute-resources quota to add a "NotBestEffort" scope.

For reference, see example 4:


On Mon, Aug 14, 2017 at 6:04 AM, Thorvald Hallvardsson <
thorvald hallvardsson gmail com> wrote:


I'm trying to play a bit with limits and quotas and generally I don't understand anything.

I'm trying to build a test application and I get an error:
Failed to create build pod: pods "wordpress-1-build" is forbidden: failed quota: compute-resources: must specify limits.cpu,limits.memory,requests.cpu,requests.memory.. A new deployment will be created automatically once the build completes

I built it with providing:
request.cpu: 1
limits.cpu: 2
request:mem: 256Mi
limit.mem: 512Mi

My quotas look as follows:
[root master ~]# oc get quota
NAME                AGE
compute-resources   2d
object-counts       2d
[root master ~]# oc describe quota compute-resources
Name:           compute-resources
Namespace:      limits
Resource        Used    Hard
--------        ----    ----
limits.cpu      0       10
limits.memory   0       2Gi
pods            0       4
requests.cpu    0       5
requests.memory 0       1Gi
[root master ~]# oc describe quota object-counts
Name:                   object-counts
Namespace:              limits
Resource                Used    Hard
--------                ----    ----
configmaps              0       5
persistentvolumeclaims  0       1
replicationcontrollers  0       10
secrets                 9       10
services                1       10

What do I do wrong or can someone explain me how that should work?

Thank you.


users mailing list
users lists openshift redhat com

Best Regards

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]