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

Configuration, prefixing, or wrappers for Slurm commands #48

Open
rcthomas opened this issue Sep 28, 2020 · 0 comments
Open

Configuration, prefixing, or wrappers for Slurm commands #48

rcthomas opened this issue Sep 28, 2020 · 0 comments
Assignees

Comments

@rcthomas
Copy link
Member

We have multiple Slurm clusters accessible from the main system: The main system itself, one for GPU satellites, others for other satellites. Slurm commands in our setup are "selected" via module load esslurm though other centers may implement this another way (or not at all, and require you to ssh somewhere, whatever).

We handled this in JupyterHub with BatchSpawner by creating wrappers that include whatever it is you need to execute the right command. For instance, a wrapper script just loads the module/adjusts the environment and then passes through the command.

module load esslurm
exec "$@"

This could be a configurable, which may need to be a Callable so that the plug-in can determine what the right environment to wrapper looks like dynamically. I think this would also enable easy remote (e.g. ssh-based) actions.

Related: #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants