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

Add gpu_limit to make_pod_spec #421

Merged
merged 4 commits into from
Mar 24, 2022
Merged

Add gpu_limit to make_pod_spec #421

merged 4 commits into from
Mar 24, 2022

Conversation

ddelange
Copy link
Contributor

@ddelange ddelange commented Mar 23, 2022

@ddelange
Copy link
Contributor Author

Some CI errors maybe due to new major release of kubernetes_asyncio ref #419 ?

AttributeError: module 'kubernetes_asyncio.client' has no attribute 'V1beta1Eviction'

Copy link
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! With GPUs on Kubernetes the limit and request must always be set to the same value, I wonder if we should not expose two different options.

As you say AMD GPUs and also be configured via extra pod config, along with NVIDIA MIG.

@ddelange
Copy link
Contributor Author

Ah interesting, didn't know. Agreed :) Is it similar behaviour to memory, i.e. make a pod with memory limits and k8s will automatically set memory requests to the same value? In that case could leave only gpu_limit kwarg?

dask_kubernetes/objects.py Outdated Show resolved Hide resolved
dask_kubernetes/objects.py Outdated Show resolved Hide resolved
@ddelange
Copy link
Contributor Author

Some CI errors maybe due to new major release of kubernetes_asyncio ref #419 ?

AttributeError: module 'kubernetes_asyncio.client' has no attribute 'V1beta1Eviction'

Pushed a fix, V1beta1Eviction was removed in v22

@ddelange ddelange requested a review from jacobtomlinson March 24, 2022 06:31
@ddelange ddelange changed the title Add gpu resource requests/limits to pod args Add gpu_limit to make_pod_spec Mar 24, 2022
dask_kubernetes/objects.py Outdated Show resolved Hide resolved
Copy link
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woo this looks great! Many thanks.

@jacobtomlinson jacobtomlinson merged commit e858f8d into dask:main Mar 24, 2022
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

Successfully merging this pull request may close these issues.

2 participants