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

More stable/faster environment checking #741

Open
b-butler opened this issue Apr 20, 2023 · 0 comments
Open

More stable/faster environment checking #741

b-butler opened this issue Apr 20, 2023 · 0 comments
Labels
cluster submission Enhancements to the submission process

Comments

@b-butler
Copy link
Member

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 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.

@b-butler b-butler added the cluster submission Enhancements to the submission process label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cluster submission Enhancements to the submission process
Projects
None yet
Development

No branches or pull requests

1 participant