Reservation API functions via PyLoadL
# # Reservation API # rc, errObj = ll_bind(res_id, job_list, bind_op) rc, errObj = ll_remove_reservation(resid_list, user_list, host_list, group_list) rc, errObj = ll_remove_reservation(res_id, res_user, res_host, res_group) rc, errObj = ll_make_reservation(start_date, period, res_type, res_data, users_list, groups_list, group_owner) rc, errObj = ll_change_reservation( res_IDs, param_dict )
The LoadLeveler Reservation API via PyLoadL has the following functions:
The ll_bind routine enables you to bind job steps to a reservation. The ll_bind routine can also be used to unbind a list of job steps from the reservations to which they are currently bound to, or whichever reservation they have requested to bind to in the event that the bind has not yet occurred.
rc = ll_bind( res_id, job_list, bind_op )
Parameters
String : Reservation id in form host.rid.
List : Users to perform control operation on.
Constant : 1 to unbind and to 0 bind jobs to reservation.
Function to enable you to cancel one or more reservations.
rc, errObj = ll_remove_reservation( res_id_list, res_user_list, res_host_list, res_group_list )
Parameters
List : Reservation IDs in format: "host.rid.r".
List : Reservation owners.
List : Machine names.
List : Loadleveler groups.
Function to enable you to create a reservations.
rc, errObj = ll_make_reservation( start_date, period, res_type, res_data, users_list, groups_list, group_owner )
Parameters
String : Start time of reservation in the format of "[mm/dd[/[cc]yy] ]HH:MM".
Int : Duration of reservation in minutes.
Constant : Indicates how the nodes should be reserved.
number of nodes.
specifying a hostlist.
specifying a jobstep.
by job command file.
Specifies options that control characteristics of the reservation. The follow values can be OR'ed together to set this parameter
Selects the SHARED option for the reservation. For a SHARED reservation, after all bound job steps which can run on the reserved nodes are scheduled to run, the remaining resources can be used to run job steps not bound to the reservation. Only bound job steps can be scheduled to run on a reservation that is not shared.
Selects the REMOVE_ON_IDLE option for the reservation. For a REMOVE_ON_IDLE reservation, if all bound job steps are finished or if all bound job steps are Idle and none can run on the reserved nodes, the reservation will be removed (canceled) automatically by LoadLeveler. If this option is not set, the reservation will remain, regardless of being used or not.
List : Users to use reservation.
List : Loadleveler groups to use reservation.
String : Loadleveler group owner.
Function to enable you to change the attribute of a reservation.
rc, errObj = ll_change_reservation( res_IDs, param_dict )
Parameters
List : Reservation IDs in format: "host.rid.r"
Dict : { RES_OP:OP_VALUE, ....}
String
Int: Add minutes to start time
Int : Duration in reservation
Int : Add minutes to duration
Int : Number of node
Int : number of addition nodes to add
List : Hostnames
List : Additional hostnames
List : Remove hostnames
List : Valid jobsteps
List : Valid users
List : Additional users
List : Remove users
List : Valid groups
List :Additional groups
List : Remove groups
Int : 0 - not shared, 1 - shared
Int : 0 - Do not remove, 1 - Remove
String : Owner of reservation
String : Group reservation owner
the LoadLeveler page the DataAccess page the Error Handling page
IBM LoadLeveler for AIX 5L: Using and Administering