Skip to content

Commit 79dd28d

Browse files
authored
Merge pull request #18 from Azure/feature/1.3.5
Feature/1.3.5
2 parents be008da + caeeaa5 commit 79dd28d

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

project.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = pbspro
33
label = PBS Professional OSS
44
type = scheduler
5-
version = 1.3.4
5+
version = 1.3.5
66
autoupgrade = true
77

88
[blobs]

specs/default/chef/site-cookbooks/pbspro/files/default/doqmgr.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License.
44
#
5+
set -e
56

67
/opt/pbs/bin/qmgr -c 'set server managers = root@*'
78
/opt/pbs/bin/qmgr -c 'set server query_other_jobs = true'
@@ -24,14 +25,12 @@ create_resource ngpus size
2425
/opt/pbs/bin/qmgr -c "set queue workq resources_default.ungrouped = false"
2526
/opt/pbs/bin/qmgr -c "set queue workq resources_default.place = scatter"
2627
/opt/pbs/bin/qmgr -c "set queue workq default_chunk.ungrouped = false"
27-
/opt/pbs/bin/qmgr -c "set queue workq default_chunk.place = scatter"
2828

2929
/opt/pbs/bin/qmgr -c "create queue htcq"
3030
/opt/pbs/bin/qmgr -c "set queue htcq queue_type = Execution"
3131
/opt/pbs/bin/qmgr -c "set queue htcq resources_default.ungrouped = true"
3232
/opt/pbs/bin/qmgr -c "set queue htcq resources_default.place = pack"
3333
/opt/pbs/bin/qmgr -c "set queue htcq default_chunk.ungrouped = true"
34-
/opt/pbs/bin/qmgr -c "set queue htcq default_chunk.place = pack"
3534
/opt/pbs/bin/qmgr -c "set queue htcq enabled = true"
3635
/opt/pbs/bin/qmgr -c "set queue htcq started = true"
3736

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License.
4+
#
5+
set -e
6+
7+
sed -i "s/^if /#if /g" /opt/pbs/lib/init.d/limits.pbs_mom
8+
sed -i "s/^fi/#fi /g" /opt/pbs/lib/init.d/limits.pbs_mom

specs/default/chef/site-cookbooks/pbspro/recipes/scheduler.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
action :create
4040
end
4141

42+
cookbook_file "/var/spool/pbs/modify_limits.sh" do
43+
source "modify_limits.sh"
44+
mode "0755"
45+
owner "root"
46+
group "root"
47+
action :create
48+
end
49+
4250
cookbook_file "/var/spool/pbs/sched_priv/sched_config" do
4351
source "sched.config"
4452
owner "root"
@@ -51,7 +59,7 @@
5159
end
5260

5361
execute "serverconfig" do
54-
command "/var/spool/pbs/doqmgr.sh && touch /etc/qmgr.config"
62+
command "/var/spool/pbs/doqmgr.sh && /var/spool/pbs/modify_limits.sh && touch /etc/qmgr.config"
5563
creates "/etc/qmgr.config"
5664
notifies :restart, 'service[pbs]', :delayed
5765
end

0 commit comments

Comments
 (0)