Set job_history_enable in initialize_pbs.sh

Delete doqmgr.sh
This commit is contained in:
Ryan Hamel 2021-06-23 11:04:28 -04:00
Родитель ec571751b2
Коммит c84a940e1d
2 изменённых файлов: 1 добавлений и 50 удалений

Просмотреть файл

@ -15,6 +15,7 @@ set -e
/opt/pbs/bin/qmgr -c 'set server query_other_jobs = true'
/opt/pbs/bin/qmgr -c 'set server scheduler_iteration = 15'
/opt/pbs/bin/qmgr -c 'set server flatuid = true'
/opt/pbs/bin/qmgr -c 'set server job_history_enable = true'
/opt/pbs/bin/qmgr -c "set sched only_explicit_psets=True"
/opt/pbs/bin/qmgr -c "set sched do_not_span_psets=True"

Просмотреть файл

@ -1,50 +0,0 @@
#!/bin/bash
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
set -e
/opt/pbs/bin/qmgr -c 'set server managers = root@*'
/opt/pbs/bin/qmgr -c 'set server query_other_jobs = true'
/opt/pbs/bin/qmgr -c 'set server scheduler_iteration = 15'
/opt/pbs/bin/qmgr -c 'set server flatuid = true'
/opt/pbs/bin/qmgr -c 'set server job_history_enable = true'
/opt/pbs/bin/qmgr -c "set queue workq resources_default.place = scatter:excl"
/opt/pbs/bin/qmgr -c "set sched only_explicit_psets=True"
/opt/pbs/bin/qmgr -c "set sched do_not_span_psets=True"
function create_resource() {
flag=""
if [ "$3" != "" ]; then
flag=", flag=$3"
fi
/opt/pbs/bin/qmgr -c "list resource $1" >/dev/null 2>/dev/null || \
/opt/pbs/bin/qmgr -c "create resource $1 type=$2 $flag"
}
create_resource slot_type string h
create_resource instance_id string h
create_resource vm_size string h
create_resource nodearray string h
create_resource disk size nh
create_resource ngpus long nh
create_resource group_id string h
# would love to use a boolean here, but pbs' boolean support is buggy with
# scheduling jobs
create_resource ungrouped string h
/opt/pbs/bin/qmgr -c "set server node_group_enable = true"
/opt/pbs/bin/qmgr -c 'set server node_group_key = group_id'
/opt/pbs/bin/qmgr -c "set queue workq resources_default.ungrouped = false"
/opt/pbs/bin/qmgr -c "create queue htcq"
/opt/pbs/bin/qmgr -c "set queue htcq queue_type = Execution"
/opt/pbs/bin/qmgr -c "set queue htcq resources_default.place = free"
/opt/pbs/bin/qmgr -c "set queue htcq resources_default.ungrouped = true"
/opt/pbs/bin/qmgr -c "set queue htcq enabled = true"
/opt/pbs/bin/qmgr -c "set queue htcq started = true"