You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ This JSON file specifies the groups of nodes and associated partitions that Slur
134
134
*`Partitions`: List of partitions
135
135
*`PartitionName`: Name of the partition. Must match the pattern `^[a-zA-Z0-9_]+$`.
136
136
*`NodeGroups`: List of node groups for this partition. A node group is a set of nodes that share the same specifications.
137
-
*`NodeGroupName`: Name of the node group. Must match the pattern `^[a-zA-Z0-9_]+$`.
137
+
*`NodeGroupName`: Name of the node group. Must match the pattern `^[a-zA-Z0-9_]+[a-zA-Z_]$`.
138
138
*`MaxNodes`: Maximum number of nodes that Slurm can launch for this node group. For each node group, `generate_conf.py` will issue a line with `NodeName=[partition_name]-[nodegroup_name][0-(max_nodes-1)]`
139
139
*`Region`: Name of the AWS region where to launch EC2 instances for this node group. Example: `us-east-1`.
140
140
*[OPTIONAL]`ProfileName`: Name of the AWS CLI profile to use to authenticate AWS requests. If you don't specify a profile name, it uses the default profile name of EC2 metadata credentials.
assert'NodeGroupName'innodegroup, 'Missing "NodeGroupName" in root["Partitions"][%s]["NodeGroups"][%s]'%(i_partition, i_nodegroup)
92
-
assertre.match('^[a-zA-Z0-9_]+$', nodegroup['NodeGroupName']), 'root["Partitions"][%s]["NodeGroups"][%s]["NodeGroupName"] does not match ^[a-zA-Z0-9-]+$'%(i_partition, i_nodegroup)
92
+
assertre.match('^[a-zA-Z0-9_]+[a-zA-Z_]$', nodegroup['NodeGroupName']), 'root["Partitions"][%s]["NodeGroups"][%s]["NodeGroupName"] does not match ^[a-zA-Z0-9_]+[a-zA-Z_]$'%(i_partition, i_nodegroup)
93
93
94
94
assert'MaxNodes'innodegroup, 'Missing "MaxNodes" in root["Partitions"][%s]["NodeGroups"][%s]'%(i_partition, i_nodegroup)
95
95
assertisinstance(nodegroup['MaxNodes'], int), 'root["Partitions"][%s]["NodeGroups"][%s]["MaxNodes"] is not a number'%(i_partition, i_nodegroup)
0 commit comments