Skip to content
Snippets Groups Projects
Commit 109ed1d5 authored by Matthias Schnepf's avatar Matthias Schnepf
Browse files

Set memory and CPU via environment variables

parent f5ddf3e6
Branches
No related tags found
No related merge requests found
...@@ -10,8 +10,8 @@ STARTD.CloudSite = "BwForCluster-Nemo2" ...@@ -10,8 +10,8 @@ STARTD.CloudSite = "BwForCluster-Nemo2"
# Machine/Job environment # Machine/Job environment
# Use TardisDroneUuid to identify drones in OBS # Use TardisDroneUuid to identify drones in OBS
# TardisDroneUuid = "$ENV(TardisDroneUuid)" TardisDroneUuid = "$ENV(TardisDroneUuid)"
# STARTD_NAME = $ENV(TardisDroneUuid) STARTD_NAME = "$ENV(TardisDroneUuid)"
# Matchmaking advertisement # Matchmaking advertisement
STARTD.ProvidesIO = TRUE STARTD.ProvidesIO = TRUE
...@@ -65,11 +65,19 @@ MASTER.DAEMON_SHUTDOWN = ( TimeToLive <= 10 * $(MINUTE) ) ...@@ -65,11 +65,19 @@ MASTER.DAEMON_SHUTDOWN = ( TimeToLive <= 10 * $(MINUTE) )
MASTER.DAEMON_SHUTDOWN_FAST = ( TimeToLive <= 3 * $(MINUTE) ) MASTER.DAEMON_SHUTDOWN_FAST = ( TimeToLive <= 3 * $(MINUTE) )
# Set number of CPUs # Set number of CPUs
NUM_CPUS = 32 CPUsDefault = 8
MEMORY = 128000 NUM_CPUS = \
ifThenElse( isUndefined($ENV(SLURM_CPUS_ON_NODE)), \
TardisDroneUuid = "$ENV(TardisDroneUuid)" $(CPUsDefault), \
STARTD_NAME = $ENV(TardisDroneUuid) $ENV(SLURM_CPUS_ON_NODE) \
)
# Set memory
MemoryDefault = 20480
MEMORY = \
ifThenElse( isUndefined($ENV(SLURM_MEM_PER_NODE)), \
$(CPUsDefault), \
$ENV(SLURM_MEM_PER_NODE) \
)
# The maximum number of claims during one negotiation cycle. # The maximum number of claims during one negotiation cycle.
# This is a tradeoff between allowing the cluster to fill fast (high value), # This is a tradeoff between allowing the cluster to fill fast (high value),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment