Skip to content

Commit

Permalink
[DFSM] Make supervisord start cfn-hup on compute nodes.
Browse files Browse the repository at this point in the history
Signed-off-by: Giacomo Marciani <[email protected]>
  • Loading branch information
gmarciani committed Jan 16, 2024
1 parent ef5d05f commit b140529
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

it 'has the correct content' do
is_expected.to render_file('/etc/parallelcluster/parallelcluster_supervisord.conf')
.with_content("[program:cfn-hup]")
.with_content("[program:clustermgtd]")
.with_content("[program:clusterstatusmgtd]")
.with_content("[program:pcluster_dcv_authenticator]")
Expand Down Expand Up @@ -69,6 +70,7 @@

it 'has the correct content' do
is_expected.to render_file('/etc/parallelcluster/parallelcluster_supervisord.conf')
.with_content("[program:cfn-hup]")
.with_content("[program:computemgtd]")

is_expected.not_to render_file('/etc/parallelcluster/parallelcluster_supervisord.conf')
Expand All @@ -91,6 +93,7 @@
.with_content("[program:loginmgtd]")

is_expected.not_to render_file('/etc/parallelcluster/parallelcluster_supervisord.conf')
.with_content("[program:cfn-hup]")
.with_content("[program:pcluster_dcv_authenticator]")
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
# Generated by Chef for AWS ParallelCluster <%= node['cluster']['node_type'] -%>
# Local modifications could be overwritten.
<%# HeadNode, ComputeFleet -%>
<% case node['cluster']['node_type'] -%>
<%# HeadNode -%>
<% when 'HeadNode' -%>
<% when 'HeadNode', 'ComputeFleet' -%>
[program:cfn-hup]
command = <%= node['cluster']['scripts_dir']%>/cfn-hup-runner.sh
autorestart = true
redirect_stderr = true
stdout_logfile = /var/log/parallelcluster/cfn-hup-runner.log
stdout_logfile_maxbytes = 1MB
<% if @region.start_with?('us-iso') -%>
environment = AWS_CA_BUNDLE="<%= @aws_ca_bundle %>"
environment = AWS_CA_BUNDLE="<%= @aws_ca_bundle %>"
<% end -%>
<% end -%>

<% case node['cluster']['node_type'] -%>
<%# HeadNode -%>
<% when 'HeadNode' -%>
<% if node['cluster']['scheduler'] == 'slurm' -%>
[program:clustermgtd]
command = <%= node_virtualenv_path %>/bin/clustermgtd
Expand Down

0 comments on commit b140529

Please sign in to comment.