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
+23-7
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,11 @@ This JSON file specifies the groups of nodes and associated partitions that Slur
124
124
]
125
125
},
126
126
...
127
-
]
127
+
],
128
+
"PartitionOptions": {
129
+
"Option1": "STRING",
130
+
"Option2": "STRING"
131
+
}
128
132
},
129
133
...
130
134
]
@@ -148,6 +152,7 @@ This JSON file specifies the groups of nodes and associated partitions that Slur
148
152
*`Tags`: List of tags applied to the EC2 instances launched for this node group.
149
153
* A tag `Name` is automatically added at launch, whose value is the name of the node `[partition_name]-[nodegroup_name]-[id]`. You should not delete or override this tag, because the script `suspend.py` uses it to find which instance is associated with the node to suspend.
150
154
* You use the sequence `{ip_address}` in the value of tag, it will be replaced with the IP address. Similarly, `{node_name}` will be replaced with the name of the node, `{hostname}` with the EC2 hostname.
155
+
*`PartitionOptions`: List of Slurm configuration attributes for the partition (optional).
151
156
152
157
Refer to the section **Examples of `partitions.json`** for examples of file content.
153
158
@@ -399,7 +404,10 @@ Single `aws` partition with 2 node groups:
399
404
}
400
405
]
401
406
}
402
-
]
407
+
],
408
+
"PartitionOptions": {
409
+
"TRESBillingWeights": "cpu=4"
410
+
}
403
411
}
404
412
]
405
413
}
@@ -513,7 +521,7 @@ Single `aws` partition with 3 node groups:
513
521
514
522
### Example 3
515
523
516
-
Two partitions `aws` and `awsspot` with one node group in each. You could use Slurm access permissions to allow "standard" users to use only Spot instances, and "VIP" users to use Spot and On-demand instances.
524
+
Two partitions `aws` and `awsspot` with one node group in each. It uses Slurm access permissions to allow users in the "standard" account to use only Spot instances, and "VIP" account users to use Spot and On-demand instances, but weights the on-demand instances more heavily for accounting purposes.
517
525
518
526
```
519
527
{
@@ -523,9 +531,9 @@ Two partitions `aws` and `awsspot` with one node group in each. You could use Sl
523
531
"NodeGroups": [
524
532
{
525
533
"NodeGroupName": "node",
526
-
"MaxNodes: 100,
534
+
"MaxNodes": 100,
527
535
"Region": "us-east-1",
528
-
"SlurmSpecifications: {
536
+
"SlurmSpecifications": {
529
537
"CPUs": "4",
530
538
"Weight": "1"
531
539
},
@@ -550,16 +558,20 @@ Two partitions `aws` and `awsspot` with one node group in each. You could use Sl
550
558
"subnet-22222222"
551
559
]
552
560
}
561
+
],
562
+
"PartitionOptions": {
563
+
"TRESBillingWeights": "cpu=30",
564
+
"AllowAccounts": "standard,VIP"
553
565
}
554
566
},
555
567
{
556
568
"PartitionName": "awsspot",
557
569
"NodeGroups": [
558
570
{
559
571
"NodeGroupName": "node",
560
-
"MaxNodes: 100,
572
+
"MaxNodes": 100,
561
573
"Region": "us-east-1",
562
-
"SlurmSpecifications: {
574
+
"SlurmSpecifications": {
563
575
"CPUs": "4",
564
576
"Weight": "1"
565
577
},
@@ -584,6 +596,10 @@ Two partitions `aws` and `awsspot` with one node group in each. You could use Sl
0 commit comments