Skip to content

Commit b7de0ce

Browse files
author
Nicolas Malaval
committed
Add slurm.conf.aws example
1 parent b2c66d3 commit b7de0ce

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,19 @@ For example launch template to create, follow the instructions at [Creating a ne
268268

269269
6) Create the JSON configuration files `config.json` and `partitions.json` in the same folder than the PY files, and populate them as instructed in the **Plugin files** section.
270270

271-
7) Run `generate_conf.py` and append the content of the output file to `slurm.conf`. Refresh the Slurm configuration by running the command `scontrol reconfigure`.
271+
7) Run `generate_conf.py` and append the content of the output file `slurm.conf.aws` to your Slurm configuration file `slurm.conf`. Refresh the Slurm configuration by running the command `scontrol reconfigure`, or by restarting Slurmctld.
272+
273+
Here is an example of output file:
274+
275+
```
276+
PrivateData=CLOUD
277+
ResumeProgram=/slurm/etc/aws/resume.py
278+
SuspendRate=100
279+
# ...More Slurm parameters
280+
281+
NodeName=aws-node[0-99] State=CLOUD CPUs=4
282+
Partition=aws Nodes=aws-node[0-99] Default=No MaxTime=INFINITE State=UP
283+
```
272284

273285
8) Change the `cron` configuration to run the script `power_down.py` every minute.
274286

template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Parameters:
99

1010
PluginPrefixUrl:
1111
Type: String
12-
Default: https://github.com/malaval/aws-plugin-for-slurm/raw/plugin-v2/
12+
Default: https://github.com/aws-samples/aws-plugin-for-slurm/raw/plugin-v2/
1313
Description: Path to the plugin files
1414

1515
VpcId:

0 commit comments

Comments
 (0)