-
Notifications
You must be signed in to change notification settings - Fork 567
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
Containers on GKE seem to request 100m CPU by default #1892
Comments
Can confirm that on Azure, the default CPU request is 0. |
The bottom line is, since we don't set default resource requests, the actual resource requests used by worker pods are determined by the cloud provider, which is probably not what we want. |
I think @msteffen saw something like this too when he was running tests. Can the answer here be as simple as just setting an explicit request to 0 by default rather than letting it override? |
we can certainly explicitly set the default resource request to 0. Two notes on that solution, though:
Given these, I think the default resource request will probably work (though it means that if any customers actually want to use a limit range, they can't).
Finally, I think it might be worth asking ourselves (if not now, at some point) whether resource requests of 0 are actually what we want. I imagine the reason Kops and GKE started creating these limit ranges is because pods do consume resources, and if you don't account them you probably do get bitten eventually. Better scale-down logic might be safer in the long run. |
Running a Pachyderm cluster on GKE. For some reason, each container seems to be requesting 100m (0.1) CPU by default. Since each worker pod has two containers (one for the user code and another for the storage sidecar), each worker pod requests 0.2 CPUs, which seems a bit much. In my case I have 100+ worker pods and most of them are failing to schedule since my cluster only has 8 CPUs.
We should look into making the default CPU request smaller.
The text was updated successfully, but these errors were encountered: