Skip to content

Commit

Permalink
Merge pull request #20 from Azure/bugfix/adjust_mom_limits_on_execs
Browse files Browse the repository at this point in the history
Apply PBS MOM limits changes on execute nodes as well
  • Loading branch information
bwatrous authored May 29, 2020
2 parents 508c3f0 + be421e3 commit c112850
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = pbspro
label = PBS Professional OSS
type = scheduler
version = 1.3.6
version = 1.3.7
autoupgrade = true

[blobs]
Expand Down
17 changes: 16 additions & 1 deletion specs/default/chef/site-cookbooks/pbspro/recipes/execute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@
end
end


cookbook_file "/var/spool/pbs/modify_limits.sh" do
source "modify_limits.sh"
mode "0755"
owner "root"
group "root"
action :create
end

node_created_guard = "#{node['cyclecloud']['chefstate']}/pbs.nodecreated"

bash "add-node-to-scheduler" do
Expand Down Expand Up @@ -115,7 +124,13 @@
set_custom_resources = custom_resources.map{ |key, value| "/opt/pbs/bin/qmgr -c 's n #{node[:hostname]} resources_available.#{key}=#{value}'"}.join(" && ")
end
end


execute "modify_limits" do
command "/var/spool/pbs/modify_limits.sh && touch /etc/modify_limits.config"
creates "/etc/modify_limits.config"
end


execute "set-node-slot_type" do
command lazy {<<-EOS
#{set_slot_type} && \
Expand Down

0 comments on commit c112850

Please sign in to comment.