kubeflow / arena

A CLI for Kubeflow.
Apache License 2.0
741 stars 180 forks source link

Limit the number of GPUs a user can use #306

Open yuanbw opened 4 years ago

yuanbw commented 4 years ago

@cheyang Is there any way to limit the number of GPUs a user can use ?
for example, If a cluster has 8 gpu, each time a user submits a task, we want to set the maximum number of GPUs he needs cannot exceed 4.

Generally, there are two mechanisms in kuberentes to limit system resources, one is Resource Quotas and the other is Limit Ranges. However, it looks like they don't work for Arena.

ereil commented 4 years ago

Hi @yuanbw How do you implemented users? Do you have multiple users accessing arena? Are you using different namespaces for the users?