在Ubuntu系統(tǒng)中設(shè)置Slurm可以按照以下步驟操作:
sudo apt update
sudo apt install slurm-llnl
/etc/slurm-llnl/slurm.conf
,配置集群節(jié)點和參數(shù)。根據(jù)實際情況修改以下參數(shù):ControlMachine=master
NodeName=compute-0-[0-1] Procs=4
PartitionName=normal Nodes=compute-0-[0-1] Default=Yes
sudo systemctl start slurmd
sudo systemctl start slurmctld
sinfo
scontrol show nodes
如果能夠顯示節(jié)點信息,說明Slurm已成功設(shè)置。
/etc/slurm-llnl/slurm.conf
文件,配置用戶權(quán)限和賬號。根據(jù)實際情況添加以下參數(shù):AccountingStorageType=accounting_storage/none
AccountingStoreEvents=NONE
JobAcctGatherType=jobacct_gather/none
sudo systemctl restart slurmd
sudo systemctl restart slurmctld
完成以上步驟后,Slurm集群將在Ubuntu系統(tǒng)中成功設(shè)置并運行。