Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SubmissionInfrastructureScripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CMSSI
SubmissionInfrastructureScripts
Commits
d25a1753
Commit
d25a1753
authored
Jun 8, 2018
by
Todor Trendafilov Ivanov
Browse files
Options
Downloads
Patches
Plain Diff
Job Time Tuning {--} - Reading the runMode from puppet && fixing a typo in radCondorConfig.
parent
b9fda462
No related branches found
No related tags found
1 merge request
!53
Job Time Tuning {--} Puppet configurable runMode/{min|max}corrFactor && multi functional correctFactor
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
JobTimeTuner.py
+12
-3
12 additions, 3 deletions
JobTimeTuner.py
with
12 additions
and
3 deletions
JobTimeTuner.py
+
12
−
3
View file @
d25a1753
...
...
@@ -105,7 +105,7 @@ def readCondorConfig(condorParam, paramType):
logging
.
exception
(
"
Could not convert %s to %s. Exception: %s
"
%
(
condorParam
,
paramType
,
e
))
elif
paramType
==
'
str
'
:
try
:
returnParam
=
=
str
(
htcondor
.
param
.
get
(
condorParam
))
returnParam
=
str
(
htcondor
.
param
.
get
(
condorParam
))
except
Exception
as
e
:
returnParam
=
False
logging
.
exception
(
"
Could not convert %s to %s. Exception: %s
"
%
(
condorParam
,
paramType
,
e
))
...
...
@@ -186,7 +186,7 @@ class JobTimeTuner:
'
static
'
:
self
.
statCorr
}
#
to
do - to make the function reference here and pass directly self.corrMethod to corrFactor
# do
ne
- to make the function reference here and pass directly self.corrMethod to corrFactor
# The default method to be used from crrFactor:
self
.
corrMethodAlias
=
readCondorConfig
(
"
JAT_TIMETUNER_corrMethod
"
,
'
str
'
)
if
not
self
.
corrMethodAlias
:
...
...
@@ -195,6 +195,15 @@ class JobTimeTuner:
logging
.
debug
(
"
corrMethodAlias = %s
"
%
self
.
corrMethodAlias
)
logging
.
debug
(
"
corrMethod = %s
"
%
self
.
corrMethod
)
# Default runMode: 'tag' || 'real'
# in tagMode we edit only EstimatedMaxWallTimeMins
# in realMode we edit also MaxWallTimeMins
self
.
runMode
=
readCondorConfig
(
"
JAT_TIMETUNER_runMode
"
,
'
str
'
)
if
not
self
.
runMode
:
self
.
runMode
=
'
tag
'
self
.
realMode
=
False
if
self
.
runMode
==
'
real
'
:
self
.
realMode
=
True
logging
.
debug
(
"
runMode = %s
"
%
self
.
runMode
)
def
getTaskStat
(
self
,
task
,
user
,
qtype
):
...
...
@@ -248,7 +257,7 @@ class JobTimeTuner:
routerEntry
[
"
TargetUniverse
"
]
=
5
routerEntry
[
"
Requirements
"
]
=
classad
.
ExprTree
(
str
(
requirementsString
))
routerEntry
[
"
set_EstimatedWallTimeMins
"
]
=
newTime
#
routerEntry["set_MaxWallTimeMins"] = newTime
if
self
.
realMode
:
routerEntry
[
"
set_MaxWallTimeMins
"
]
=
newTime
routerEntry
[
"
set_EstimatedWallTimeJobCount
"
]
=
jobCount
routerEntry
[
"
set_HasBeenRouted
"
]
=
False
;
routerEntry
[
"
set_HasBeenTimingTuned
"
]
=
True
;
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment