You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modifying the environment detection to rely less heavily on the hostname would be helpful for when clusters change hostnames which has happened twice on Delta. @joaander proposed using environmental variables that are set on clusters to indicate identity such as SLURM_CLUSTER_NAME and CLUSTER_NAME.
Proposed solution
Just add an environment variable option to environment detection os.getenv was roughly 3 orders of magnitude faster than socket.getfqdn.
To do this ComputeEnvironment.ispresent can look up an environment variable if given and check for its presence and value.
The text was updated successfully, but these errors were encountered:
Feature description
Modifying the environment detection to rely less heavily on the hostname would be helpful for when clusters change hostnames which has happened twice on Delta. @joaander proposed using environmental variables that are set on clusters to indicate identity such as
SLURM_CLUSTER_NAME
andCLUSTER_NAME
.Proposed solution
Just add an environment variable option to environment detection
os.getenv
was roughly 3 orders of magnitude faster thansocket.getfqdn
.To do this
ComputeEnvironment.ispresent
can look up an environment variable if given and check for its presence and value.The text was updated successfully, but these errors were encountered: