azure-aci icon indicating copy to clipboard operation
azure-aci copied to clipboard

Resource Limits vs Requests

Open jonstelly opened this issue 3 years ago • 2 comments

There seems to be some sort of requirement that resource Limits <= Requests for all containers in a pod? Another report of this from 2019: #17.

I've requested some documentation improvements https://github.com/MicrosoftDocs/azure-docs/issues/78032 but is there any way to improve this? For my case I've got linkerd and knative sidecars being injected into my pod and if I set limits and requests equal on those it eats up all the resources in my non-ACI nodes.

Would it be possible to change the logic so ACI calculates the sum of all container's limits and requests, then uses the maximum value?

time="2021-07-07T20:33:17Z" level=error msg="failed to create container group default-my-worker-00007-deployment-68f476fd9b-phjzn" azure.region=... azure.resourceGroup=me-dev-...-kube error="api call to https://management.azure.com/subscriptions/...: got HTTP response status code 400 error code "ContainerLimitGreaterThanContainerGroupTotalRequest": The 'Cpu' limit '1.5' in container 'me' is greater than the total request '0.3' of container group 'default-my-worker-00007-deployment-68f476fd9b-phjzn'." key=default/my-worker-00007-deployment-68f476fd9b-phjzn method=aci.createContainerGroup name=my-worker-00007-deployment-68f476fd9b-phjzn namespace=default node=virtual-node-aci-linux operatingSystem=Linux phase=Pending pod=my-worker-00007-deployment-68f476fd9b-phjzn provider=azure reason=ProviderFailed uid=e2ddabce-1032-4768-80ac-110720d38c8f watchedNamespace= workerId=12

jonstelly avatar Jul 07 '21 21:07 jonstelly

@mainaksarcar @fnuarnav, wdyt?

helayoty avatar Nov 19 '22 00:11 helayoty

hello, is there any update on this?

joanna-jasnowska-wttech avatar Feb 14 '24 10:02 joanna-jasnowska-wttech