Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource Limits vs Requests #149

Open
jonstelly opened this issue Jul 7, 2021 · 2 comments
Open

Resource Limits vs Requests #149

jonstelly opened this issue Jul 7, 2021 · 2 comments

Comments

@jonstelly
Copy link

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 MicrosoftDocs/azure-docs#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

@helayoty
Copy link
Member

@mainaksarcar @fnuarnav, wdyt?

@joanna-jasnowska-wttech

hello, is there any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants