You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Qi Zhu (Jira)" <ji...@apache.org> on 2023/12/19 04:45:00 UTC
[jira] [Resolved] (YUNIKORN-2271) Incorrect handling of GPU only resources
[ https://issues.apache.org/jira/browse/YUNIKORN-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Qi Zhu resolved YUNIKORN-2271.
------------------------------
Fix Version/s: 1.5.0
Resolution: Fixed
> Incorrect handling of GPU only resources
> ----------------------------------------
>
> Key: YUNIKORN-2271
> URL: https://issues.apache.org/jira/browse/YUNIKORN-2271
> Project: Apache YuniKorn
> Issue Type: Bug
> Components: shim - kubernetes
> Reporter: Weiwei Yang
> Assignee: Qi Zhu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.5.0
>
>
> https://github.com/apache/yunikorn-k8shim/blob/a118ba6c4d84804e2a407f9d91196ece4690cf09/pkg/common/resource.go#L61-L63 this code seems to have a bug. When I define resource like this:
> {code}
> request:
> nvidia.com/gpu: 1
> limit:
> nvidia.com/gpu: 1
> {code}
> this is considered as QoS best effort and returned with just
> {code}
> Resources:
> pod:1
> {code}
> but I think this is a valid configuration that a pod only specifies GPU resource without memory or CPU. It seems this is the K8s upstream code: qos.GetPodQOS() causes this..
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org