[ 
https://issues.apache.org/jira/browse/YUNIKORN-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762297#comment-17762297
 ] 

Rajesh Kanhaiya Lal commented on YUNIKORN-1944:
-----------------------------------------------

Hi [~yangpoan], Could you please try the same behavior with max-resources? I 
test for max-resources and it's not honoring the max-resource limit settings 
for the wildcard User.

I configured below the limit in my Yunikorn Config
{code:java}
queues.yaml: |
    partitions:
      - name: default
        queues:
          - name: root
            submitacl: '*'
            parent: true
            limits:
               - limit: quota enforcement
                 users:
                   - TestA
                   - '*'
                 maxapplications: 2
                 maxresources:
                   memory: 350M
                   vcore : 350m {code}
Schedule Two Pod one with 300M and the other with 100M memory which is greater 
than the max-resources value from Limit. Both the Pod has *Dummy* Username 
which is not mentioned in the Limit Object
{code:java}
Pod A : yunikorn.apache.org/user.info: 
{"user":"Dummy","groups":["devopsdddB","system:authenticated"]}
Pod B : yunikorn.apache.org/user.info: 
{"user":"Dummy","groups":["devopsddB","system:authenticated"]} {code}
Ideally, it should restrict the User to schedule the Pod or Application If 
Quota is exceeding max-resource.

> Wildcard user limit settings are not honoured by applications
> -------------------------------------------------------------
>
>                 Key: YUNIKORN-1944
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1944
>             Project: Apache YuniKorn
>          Issue Type: Bug
>          Components: shim - kubernetes
>            Reporter: Rajesh Kanhaiya Lal
>            Assignee: PoAn Yang
>            Priority: Major
>         Attachments: test_pod.yaml, test_pod2.yaml, yunikorn-configs.yaml
>
>
> Hi Team,
> The Wildcard setting for the Users on Applications is not applying and quota 
> enforcement checks are failing.
> Example 
> PFA Yunikorn Config and Pod Spec
> [^yunikorn-configs.yaml] [^test_pod.yaml]
> Scheduling two pods with some dummy users which are not mentioned in the 
> Limit configuration and Using wildcard for the Quota enforcement.
> The Limit object restrictions are not taking effect, set 1 max-application 
> setting for wildcard user and able to schedule more than 1 application 
> without any issue.
> Please let me know if something is required.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to