File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
cookbooks/aws-parallelcluster-slurm
templates/default/slurm/compute Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste
2020- Upgrade Pmix to 5.0.6 (from 5.0.3).
2121- Upgrade ARM PL to version 24.10 (from 23.10).
2222- Remove generation of DSA keys for login nodes as DSA, which became unsupported in OpenSSH 9.7+.
23+ - Set instance ID and instance type information in Slurm upon compute nodes launch.
2324
24253.12.0
2526------
Original file line number Diff line number Diff line change 2121 for_all_oses do |platform , version |
2222 context "on #{ platform } #{ version } " do
2323 cached ( :chef_run ) do
24- runner ( platform : platform , version : version ) . converge ( described_recipe )
24+ runner = runner ( platform : platform , version : version ) do |node |
25+ node . override [ 'ec2' ] [ 'instance_id' ] = "i-xxx"
26+ node . override [ 'ec2' ] [ 'instance_type' ] = "fake-instance-type"
27+ end
28+ runner . converge ( described_recipe )
2529 end
2630
2731 it 'creates the service definition for slurmd' do
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ConditionPathExists=<%= node['cluster']['slurm']['install_dir'] %>/etc/slurm.con
77[Service]
88Type=simple
99EnvironmentFile=-/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'] %>
1111ExecReload=/bin/kill -HUP $MAINPID
1212KillMode=process
1313LimitNOFILE=131072
You can’t perform that action at this time.
0 commit comments