Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-42530: changes for automatic Large Glideins #25

Merged
merged 11 commits into from
Feb 17, 2024
14 changes: 14 additions & 0 deletions python/lsst/ctrl/execute/allocator.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def __init__(self, platform, opts, configuration, condorInfoFileName):
self.commandLineDefaults["WALL_CLOCK"] = self.opts.maximumWallClock
self.commandLineDefaults["ACCOUNT"] = self.opts.account
self.commandLineDefaults["MEMPERCORE"] = 4096
self.commandLineDefaults["ALLOWEDAUTO"] = 500
self.commandLineDefaults["AUTOCPUS"] = 16
self.commandLineDefaults["QUEUE"] = self.opts.queue
self.load()

Expand Down Expand Up @@ -325,6 +327,12 @@ def getMemoryPerCore(self):
"""
return self.getParameter("MEMPERCORE")

def getAllowedAutoGlideins(self):
"""Accessor for AllowedAutoGlideins
@return the value of AllowedAuto
"""
return self.getParameter("ALLOWEDAUTO")

def getQOS(self):
"""Accessor for QOS
@return the value of QOS
Expand All @@ -337,6 +345,12 @@ def getCPUs(self):
"""
return self.getParameter("CPUS")

def getAutoCPUs(self):
"""Size of standard glideins for allocateNodes auto
@return the value of autoCPUs
MichelleGower marked this conversation as resolved.
Show resolved Hide resolved
"""
return self.getParameter("AUTOCPUS")

def getWallClock(self):
"""Accessor for WALL_CLOCK
@return the value of WALL_CLOCK
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/ctrl/execute/allocatorParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ def parseArgs(self, basename):
"-c",
"--cpus",
action="store",
default=None,
default=16,
dest="cpus",
help="cores / cpus per glidein",
type=int,
required=True,
required=False,
)
parser.add_argument(
"-a",
Expand Down
Loading
Loading