Step 5 – Configure the connection to the AWS PCS cluster
To establish a connection to the AWS PCS cluster, launch sackd
as a system service
by following these steps.
-
Set up the environment file for the
sackd
service with the command that follows. Before running the command, replaceip-address
andport
with the values retrieved from endpoints in Step 1.sudo echo "SACKD_OPTIONS='--conf-server=
ip-address
:port
'" > /etc/sysconfig/sackd -
Create a
systemd
service file for managing thesackd
process.sudo cat << EOF > /etc/systemd/system/sackd.service [Unit] Description=Slurm auth and cred kiosk daemon After=network-online.target remote-fs.target Wants=network-online.target ConditionPathExists=/etc/sysconfig/sackd [Service] Type=notify EnvironmentFile=/etc/sysconfig/sackd User=slurm Group=slurm RuntimeDirectory=slurm RuntimeDirectoryMode=0755 ExecStart=/opt/aws/pcs/scheduler/slurm-23.11/sbin/sackd --systemd \$SACKD_OPTIONS ExecReload=/bin/kill -HUP \$MAINPID KillMode=process LimitNOFILE=131072 LimitMEMLOCK=infinity LimitSTACK=infinity [Install] WantedBy=multi-user.target EOF
-
Set ownership of the
sackd
service file.sudo chown root:root /etc/systemd/system/sackd.service && \ sudo chmod 0644 /etc/systemd/system/sackd.service
-
Enable the
sackd
service.sudo systemctl daemon-reload && sudo systemctl enable sackd
-
Start the
sackd
service.sudo systemctl start sackd