Step 3 – Install Slurm - AWS PCS

Step 3 – Install Slurm

Install a version of Slurm that is the compatible with AWS PCS.

To install Slurm
  1. Connect to the same temporary instance where you installed the AWS PCS software.

  2. 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. Substitute region with the AWS Region of your temporary instance, such as us-east-1.

    curl https://aws-pcs-repo-region.s3.amazonaws.com/aws-pcs-slurm/aws-pcs-slurm-23.11-installer-23.11.10-1.tar.gz \ -o aws-pcs-slurm-23.11-installer-23.11.10-1.tar.gz

    You 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.

  3. (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.

    1. 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
    2. 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.

    3. 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 as us-east-1.

      wget https://aws-pcs-repo-region.s3.amazonaws.com/aws-pcs-slurm/aws-pcs-slurm-23.11-installer-23.11.10-1.tar.gz.sig && \ gpg --verify ./aws-pcs-slurm-23.11-installer-23.11.10-1.tar.gz.sig

      The output should be similar to the following:

      gpg: assuming signed data in './aws-pcs-slurm-23.11-installer-23.11.10-1.tar.gz'
      gpg: Signature made Thu Aug  8 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.

  4. 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-1.tar.gz && \ cd aws-pcs-slurm-23.11-installer
  5. 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
  6. 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='Mon Aug 12 12:38:56 UTC 2024'
    SLURM_VERSION='23.11.10'
    PCS_SLURM_RELEASE='1'