Skip to content

Commit 9b331cc

Browse files
Himani Deshpandehanwen-cluster
authored andcommitted
Add instance id and instance type to slurmd
The information will be shown on `scontrol show nodes`: ``` NodeName=queue-on-demand-dy-compute-resource-2-2 Arch=x86_64 CoresPerSocket=1 CPUAlloc=4 CPUEfctv=4 CPUTot=4 CPULoad=0.95 AvailableFeatures=dynamic,c5.xlarge,compute-resource-2 ActiveFeatures=dynamic,c5.xlarge,compute-resource-2 Gres=(null) NodeAddr=192.168.127.110 NodeHostName=queue-on-demand-dy-compute-resource-2-2 Version=24.05.2 OS=Linux 5.10.233-224.894.amzn2.x86_64 #1 SMP Mon Jan 27 16:52:48 UTC 2025 RealMemory=7782 AllocMem=0 FreeMem=6431 Sockets=4 Boards=1 State=ALLOCATED+CLOUD ThreadsPerCore=1 TmpDisk=0 Weight=1000 Owner=N/A MCS_label=N/A Partitions=queue-on-demand BootTime=2025-02-10T21:22:00 SlurmdStartTime=2025-02-10T21:25:05 LastBusyTime=2025-02-10T21:25:05 ResumeAfterTime=None CfgTRES=cpu=4,mem=7782M,billing=4 AllocTRES=cpu=4 CurrentWatts=0 AveWatts=0 InstanceId=i-0eb8d995282xxxx11 InstanceType=c5.xlarge ``` Signed-off-by: Hanwen <[email protected]>
1 parent 3a6db7c commit 9b331cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbooks/aws-parallelcluster-slurm/templates/default/slurm/compute/slurmd.service.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ConditionPathExists=<%= node['cluster']['slurm']['install_dir'] %>/etc/slurm.con
77
[Service]
88
Type=simple
99
EnvironmentFile=-/etc/sysconfig/slurmd
10-
ExecStart=<%= node['cluster']['slurm']['install_dir'] %>/sbin/slurmd -D -s $SLURMD_OPTIONS
10+
ExecStart=<%= node['cluster']['slurm']['install_dir'] %>/sbin/slurmd -D -s $SLURMD_OPTIONS --instance-id <%= node['ec2']['instance_id'] %> --instance-type <%= node['ec2']['instance_type'] %>
1111
ExecReload=/bin/kill -HUP $MAINPID
1212
KillMode=process
1313
LimitNOFILE=131072

0 commit comments

Comments
 (0)