is there a way to inject specific commands into the job control on the worker nodes? As far as I understand, everything has to be set in the .bashrc of the cryosparc user.
In our case this would be the same for all machines, and I would very much like to use our module system for programs to set e.g. the path and do this in a worker node specific manner.
For a cluster configuration this seems to be implemented, but is there something equivalent for single worker nodes? That would be great.
You should be able to do this in
cryosparc_worker/config.sh. If you have a single installation of
cryosparc_worker for multiple worker nodes, you should still be able to control machine-specific settings with conditional statements that depend on the output of
how I love active Discussion forums
Thanks for the tip, that was exactly what I was looking for!
All the best,
You’re welcome. The conditional statement approach is applicable to
.bashrc as well, whichever is more appropriate for what you’re trying to inject and when.
In my case, I do not want to keep the .bashrc as clean as possible. So the config-file is perfect.
Now it works smoothly, using our module system to load the appropriate gcc version for the worker node and so on.
Thanks again for the support,