Skip to content

NEGOTIATOR_SLOT_CONSTRAINT updates #451

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,27 @@ VALID_SPOOL_FILES=$(VALID_SPOOL_FILES), negotiator_allocated
ENOUGH_MIPS = (Mips > 11800)

# Make sure each negotiator considers the right set of slots.
NEGOTIATOR_SLOT_CONSTRAINT = $(ENOUGH_MIPS) && OSPool =?= True && versioncmp(split(CondorVersion)[1],"9.6.0") >= 0

# Allocated resoruces do not set OSPool=True
NEGOTIATOR_ALLOCATED.NEGOTIATOR_SLOT_CONSTRAINT = OSPool =!= True

# blacklist certain users
#NEGOTIATOR_SUBMITTER_CONSTRAINT = Name != "[email protected]"
NEGOTIATOR_SUBMITTER_CONSTRAINT = True
NEGOTIATOR_SLOT_CONSTRAINT = $(ENOUGH_MIPS) && \
versioncmp(split(CondorVersion)[1],"23.0.0") >= 0 && \
(isUndefined(PelicanPluginVersion) || versioncmp(PelicanPluginVersion,"7.13.0") >= 0) && \
isUndefined(GLIDEIN_ResourceName) != True && \
GLIDEIN_ResourceName != "UNKNOWN" && \
isUndefined(GLIDEIN_Site) != True && \
GLIDEIN_Site != "UNKNOWN"

# Allocated is not valid on ITB
NEGOTIATOR_ALLOCATED.NEGOTIATOR_SLOT_CONSTRAINT = False

# blacklist certain users, protect the pool
NEGOTIATOR_SUBMITTER_CONSTRAINT = (isUndefined(RecentJobsExitException) || RecentJobsExitException <= 20) && \
(isUndefined(RecentJobsNotStarted) || RecentJobsNotStarted <= 40)
NEGOTIATOR_ALLOCATED.NEGOTIATOR_SUBMITTER_CONSTRAINT = $(NEGOTIATOR_SUBMITTER_CONSTRAINT)

# limit what type of jobs we are willing to schedule
# 2023-05-25 OSDF issue - stop scheduling such jobs for now
# NOTE: Do not use TransferInput in the expression - it will cause an autoclusters explosion
#NEGOTIATOR_JOB_CONSTRAINT = (regexp("osdf|stash", TransferInput) || regexp("osdf|stash", TransferOutputRemaps)) =!= True || ProjectName == "OSG-Staff"

# maintenance
#NEGOTIATOR_SLOT_CONSTRAINT = False
#NEGOTIATOR_ALLOCATED.NEGOTIATOR_SLOT_CONSTRAINT = False


Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,22 @@ ENOUGH_MIPS = (Mips > 11800)
# Make sure each negotiator considers the right set of slots.
NEGOTIATOR_SLOT_CONSTRAINT = $(ENOUGH_MIPS) && \
OSPool =?= True && \
versioncmp(split(CondorVersion)[1],"9.6.0") >= 0 && \
(isUndefined(PelicanPluginVersion) || versioncmp(PelicanPluginVersion,"7.11.0") >= 0) && \
(isUndefined(OSDF_PLUGIN_VERSION) || versioncmp(OSDF_PLUGIN_VERSION,"7.11.0") >= 0) && \
versioncmp(split(CondorVersion)[1],"23.0.0") >= 0 && \
(isUndefined(PelicanPluginVersion) || versioncmp(PelicanPluginVersion,"7.13.0") >= 0) && \
isUndefined(GLIDEIN_ResourceName) != True && \
GLIDEIN_ResourceName != "UNKNOWN"
GLIDEIN_ResourceName != "UNKNOWN" && \
isUndefined(GLIDEIN_Site) != True && \
GLIDEIN_Site != "UNKNOWN"

# Allocated resoruces do not set OSPool=True
NEGOTIATOR_ALLOCATED.NEGOTIATOR_SLOT_CONSTRAINT = OSPool =!= True
NEGOTIATOR_ALLOCATED.NEGOTIATOR_SLOT_CONSTRAINT = \
OSPool =!= True && \
versioncmp(split(CondorVersion)[1],"23.0.0") >= 0 && \
(isUndefined(PelicanPluginVersion) || versioncmp(PelicanPluginVersion,"7.13.0") >= 0) && \
isUndefined(GLIDEIN_ResourceName) != True && \
GLIDEIN_ResourceName != "UNKNOWN" && \
isUndefined(GLIDEIN_Site) != True && \
GLIDEIN_Site != "UNKNOWN"

# blacklist certain users, protect the pool
NEGOTIATOR_SUBMITTER_CONSTRAINT = (isUndefined(RecentJobsExitException) || RecentJobsExitException <= 20) && \
Expand Down