Step 3: Use Job Templates to Partition a Group of Nodes for a Group of Users
Applies To: Windows HPC Server 2008
Job templates can be used to define custom submission policies.
The first procedure describes how to create a new job template called “Debugging”. This template limits jobs to the node group “StagingNodes” and to the user group “Developers”.
The second procedure describes how to modify the default job template to add the “ProductionNodes” node group as a required value of the Node group job property. This ensures that jobs submitted using the default template will not be able to run on nodes in the “StagingNodes” node group.
The Node group job property specifies a list of node groups that a job can use. A job can only run on nodes that are members of all listed groups. For example, if the two mutually exclusive groups “ProductionNodes” and “StagingNodes” are both specified in a job request, the job will not start because there are no nodes that are members of both groups.
You must have administrative permissions on the head node to complete the following procedures.
Using job templates to partition your cluster for different user groups
To create a new job template called “Debugging”
In HPC Cluster Manager, click Configuration.
In the Navigation pane, click Job Templates.
In the Actions pane, click New. The Generate Job Template Wizard appears.
In Enter a name for the job template, type:
In Enter a description, type:
To partition StagingNodes for Developers
Click Limit Node Groups (Optional).
On the Limit Node Groups page, select the Allow only the selected node groups radio button, then select the check box next to the StagingNodes node group.
To create the job template, click Finish. The Debugging template now appears in the job template list.
Right-click the Debugging template, and then click Set Permissions. The Permissions for Debugging dialog box appears.
By default, the Administrators and Users groups are included in the job template permissions. In Group or user names, select the Users group, then click Remove.
Click Add. The Select Users, Computers, or Groups dialog box appears.
Because you created the Developers group as a local group on the head node, specify your head node as the location:
Click Locations. The Locations dialog box appears.
Under Location, select your head node, then click OK.
Under Enter the object names to select, type Developers, then click OK.
Developers now appears in the list of group or user names for the Debugging template. Verify that the Allow check box is selected for the Submit Job permission.
Click OK to apply the changes and close the permissions dialog box.
To modify the default job template
In the job template list, right-click the Default template, then click Edit.
In the Job Template Editor dialog box, click Add, then click Node Groups.
Note: if Node Groups is grayed out, then it has already been added. Find and select Node Groups in Selected Job Properties.
Node Groups now appears selected in Selected Job Properties
In Default Value drop-down list, select the check box next to ProductionNodes.
In Required Values drop-down list, select the check box next to ProductionNodes.
If you have other job templates that should not be able to submit jobs to “StagingNodes”, then add “ProductionNodes” to the default and required Node Groups properties for those templates as well.