Remove and Reattach worker node

Dear Cryosparc team,

we have many workers attached to our cryosparc instance. We would sometimes like to detatch a worker in order to use it for other computation. We are unsure how to do it properly, so we do not have to deinstall and reinstall the worker everytime.

We would appreciate it you could provide a set of commands!

best,
Tamino

@Tamino The commands depend on the version of CryoSPARC. What version do you use?

Nice to see you @wtempel!

We’re using the latest version!

Please can you confirm you are using v5.0.2?

hey wtempel,

sorro for not being clearn in the last message,

yes, we are using 5.0.2

In v5.0.2, one can run the command

cryosparcm worker disconnect --worker workerx.local

to disconnect a worker with the hypothetical workerx.local name.
There is also a cryosparcm worker connect command.
For mixed CryoSPARC and non-CryoSPARC workloads, you may prefer to

  1. control your server (and GPU) resources as a cluster with a workload manager like slurm
  2. connect the cluster to CryoSPARC as a cluster lane
  3. enqueue CryoSPARC jobs to that cluster lane
  4. enqueue non-CryoSPARC jobs to the same cluster, using the applicable workload manager command, such as sbatch in the slurm case.

A properly configured cluster workload manager would ensure efficient scheduling of and non-interference between CryoSPARC and non-CryoSPARC cluster jobs.