-
Notifications
You must be signed in to change notification settings - Fork 40k
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
ResourceRequest Limits does not work as described #7355
Comments
If limits are specified, they need to always take precedence over |
I agree that the comment is worded badly, but the description makes more
On Mon, Apr 27, 2015 at 7:46 AM, Derek Carr notifications@github.com
|
Here's one bit of that conversation: #4055 (comment) |
A more recent one: #5105 (comment) It can be difficult to piece together an entire conversation on github. |
So my comments there were about Request. I think Request is correct. On Mon, Apr 27, 2015 at 9:35 AM, Mark Turansky notifications@github.com
|
I don't think this is a 1.0 blocker. |
I think the problem is we have no way of enforcing In the near term, we could look to do the following:
|
The comments/descriptions reflect what we want to have implemented. Requests has not been implemented, except for storage. The scheduler should use Requests. Kubelet doesn't need to enforce Requests. Requests < Limits implies a lower QoS (#147). See the explanation in https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/resources.md cc @vishh |
We should document how we translate cpu limit to shares. The swagger isn't really the right place. Probably we need a more user-focused version of resources.md. |
Because we provide an abstraction of a higher level than Docker and our users don't really need to understand Docker way of handling resources (i.e. what kind of guarantees they can/cannot expect), I believe that we should explain this as well. The same holds for other container engines. |
@bgrant0607 is this fixed by current QoS implementation? |
Yes. |
The API v3 says that:
But in our scheduler implementation we use:
This means that in practice we use Limits as an amount used by the Scheduler to see if Pod fits the Node (i.e. we use it as
Request
should be), and we don't useRequests
in any meaningful way.For obvious reasons this is confusing, and we should fix that by either removing
Requests
from API and changing the comment, or fix current usages. I'm in favor of removing, even though I see that in future we may wan't to introduce this split again.@ggarson @bgrant0607 @davidopp @thockin
The text was updated successfully, but these errors were encountered: