Step 3 – Install Slurm
Install a version of Slurm that is the compatible with AWS PCS.
To install Slurm
-
Connect to the same temporary instance where you installed the AWS PCS software.
-
Download the Slurm installer software. The Slurm installer is packaged into a compressed tarball (
.tar.gz
) file. To download the latest stable version, use the following command. Substituteregion
with the AWS Region of your temporary instance, such asus-east-1
.curl https://aws-pcs-repo-
region
.s3.amazonaws.com/aws-pcs-slurm/aws-pcs-slurm-23.11-installer-23.11.10-3.tar.gz \ -o aws-pcs-slurm-23.11-installer-23.11.10-3.tar.gzYou can also get the latest version by replacing the version number with
latest
in the preceding command (for example:aws-pcs-slurm-23.11-installer-latest.tar.gz
).Note
This might change in future releases of the Slurm installer software.
-
(Optional) Verify the authenticity and integrity of the Slurm installer tarball. We recommend that you do this to verify the identity of the software publisher and to check that the file has not been altered or corrupted since it was published.
-
Download the public GPG key for AWS PCS and import it into your keyring. Substitute
region
with the AWS Region where you launched your temporary instance. The command should return a key value. Record the key value; you use it in the next step.wget https://aws-pcs-repo-public-keys-
region
.s3.amazonaws.com/aws-pcs-public-key.pub && \ gpg --import aws-pcs-public-key.pub -
Run the following command to verify the GPG key's fingerprint.
gpg --fingerprint 7EEF030EDDF5C21C
The command should return a fingerprint that is identical to the following:
1C24 32C1 862F 64D1 F90A 239A 7EEF 030E DDF5 C21C
Important
Don't run the Slurm installation script if the fingerprint doesn't match. Contact AWS Support
. -
Download the signature file and verify the signature of the Slurm installer tarball file. Replace
region
with the AWS Region where you launched your temporary instance, such asus-east-1
.wget https://aws-pcs-repo-
region
.s3.amazonaws.com/aws-pcs-slurm/aws-pcs-slurm-23.11-installer-23.11.10-3.tar.gz.sig && \ gpg --verify ./aws-pcs-slurm-23.11-installer-23.11.10-3.tar.gz.sigThe output should be similar to the following:
gpg: assuming signed data in './aws-pcs-slurm-23.11-installer-23.11.10-3.tar.gz' gpg: Signature made Tue Dec 17 14:23:38 2024 CEST gpg: using RSA key 4BAA531875430EB0739E6D961BA7F0AF6E34C496 gpg: Good signature from "AWS PCS Packages (AWS PCS Packages)" [unknown] gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 1C24 32C1 862F 64D1 F90A 239A 7EEF 030E DDF5 C21C Subkey fingerprint: 4BAA 5318 7543 0EB0 739E 6D96 1BA7 F0AF 6E34 C496
If the result includes
Good signature
and the fingerprint matches the fingerprint returned in the previous step, proceed to the next step.Important
Don't run the Slurm installation script if the fingerprint doesn't match. Contact AWS Support
.
-
-
Extract the files from the compressed
.tar.gz
file and navigate into the extracted directory.tar -xf aws-pcs-slurm-23.11-installer-23.11.10-3.tar.gz && \ cd aws-pcs-slurm-23.11-installer
-
Install Slurm. The installer downloads, compiles, and installs Slurm and its dependencies. It takes several minutes, depending on the specifications of the temporary instance you selected.
sudo ./installer.sh -y
-
Check the scheduler version file to confirm the installation.
cat /opt/aws/pcs/scheduler/slurm-23.11/version
The output should be similar to the following:
SLURM_INSTALL_DATE='Tue Dec 17 12:38:56 UTC 2024' SLURM_VERSION='23.11.10' PCS_SLURM_RELEASE='3'