Advanced Policy Configuration
VncPolicyDefaultResources | The default resources required by a job. |
VncPolicyValidateResources | Make sure that the resource list for a job obeys any number of rules. |
VncPolicyDefaultPriority { user } | Assign the default priority to a job based on the user. |
VncPolicyMaxPriority { user priority } | Limit the priority based on the maximum allowed to the user. |
In this tutorial, you will configure VncPolicyDefaultResources and VncPolicyValidateResources.
Configure Default Resources
proc VncPolicyDefaultResources {} {
global env
return "$env(VOVARCH)"
}
proc VncPolicyDefaultResources {} {
global env
return "$env(VOVARCH) RAM/50"
}
Enforce Job Resource Rules
proc VncPolicyValidateResources { resList } {
return $resList
}
But this process does nothing. Try the process described below:
proc VncPolicyValidateResources { resList } {
#
# This policy adds a minimum RAM requirement
# for all submitted jobs.
#
if [regexp "RAM/" $resList] {
# Already a RAM constaints.
} else {
lappend resList "RAM/512"
}
return $resList
}