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

Wilfred Spiegelenburg commented on YUNIKORN-1086:
-------------------------------------------------

Not sure how well documented this is in the docs (Jira to follow up maybe?)

Look  in the schedule/object/node.go code at:
 * IsReserved method for the boolean flag
 * GetReservations to get the reservations

Look  in the schedule/object/application.go code at:
 * hasReserved method for the boolean flag
 * GetReservations to get the reservations

Reservation keys are simple strings that contain: {{<nodeID> | 
<allocationKey>}} when stored on an application and {{<applicationID> | 
<allocationKey>}} when stored on a node.

this "|" is the pipe character and there are no spaces around it.

> exposed reservation information in the node rest response
> ---------------------------------------------------------
>
>                 Key: YUNIKORN-1086
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1086
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: core - common
>            Reporter: Wilfred Spiegelenburg
>            Assignee: Ryan Lo
>            Priority: Major
>              Labels: newbie
>
> We should expose the reservation details for the node in the rest API.
> Need to decide on what kind of detail:
>  * simple flag for reserved or not
>  * app that has the node reserved 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to