Hi Himanshu, Use the standard batch spawner provided by jupyterehub. Once you have it running in a SLURM cluster, you need to change the slurm script that spins up notebook processes to spinup notebook containers instead. The container image should be configurable.
[1] https://github.com/jupyterhub/batchspawner Thanks Dimuthu On Fri, Jul 1, 2022 at 11:43 PM Hansaria, Himanshu <hhan...@iu.edu> wrote: > I plan to setup slurm spawner following this. > > Please let me know if i should be following this for the same. > > https://github.com/mkgilbert/slurmspawner > <https://github.com/mkgilbert/slurmspawner> > GitHub - mkgilbert/slurmspawner: Custom Spawner for Jupyterhub to start > slurm jobs when users log in <https://github.com/mkgilbert/slurmspawner> > slurmspawner for Jupyterhub. This is a custom spawner for Jupyterhub that > is designed for installations on clusters using Slurm scheduling software. > github.com > ** > ** > ** > For others, the idea is to instantiate single user notebook servers inside > a container on the local machine with the Docker Spawner. The eventual > goal is to write a custom spawner which is a merge of the Docker and the > slurm Spawner. > > > Thanks and regards, > Himanshu > ------------------------------ > *From:* Hansaria, Himanshu <hhan...@iu.edu> > *Sent:* Friday, July 1, 2022 10:54 PM > *To:* dev@airavata.apache.org <dev@airavata.apache.org> > *Subject:* [External] Re: DockerSpawnner for Jupyterhub > > This message was sent from a non-IU address. Please exercise caution when > clicking links or opening attachments from external sources. > > PS :- I'm able to run a notebook inside it as well. > > Thanks, > Himanshu > ------------------------------ > *From:* Hansaria, Himanshu <hhan...@iu.edu> > *Sent:* Friday, July 1, 2022 10:48 PM > *To:* dev@airavata.apache.org <dev@airavata.apache.org> > *Subject:* [External] DockerSpawnner for Jupyterhub > > This message was sent from a non-IU address. Please exercise caution when > clicking links or opening attachments from external sources. > > Hi Dimuthu, > > I was able to get the DockerSpawner for jupyterhub working. > > Can you confirm if this is the needed functionality? > Please see the screenshot attached for reference. > > My container spawned using DockerSpawner is running on > http://localhost:53320/. > > Thanks and regards, > Himanshu > > > >