Thanks Dimuthu.

Yeah, i'll follow that.



________________________________
From: DImuthu Upeksha <dimuthu.upeks...@gmail.com>
Sent: Saturday, July 2, 2022 12:14 AM
To: Airavata Dev <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.

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<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjupyterhub%2Fbatchspawner&data=05%7C01%7Chhansar%40iu.edu%7C0db15000176841814c2008da5be15efd%7C1113be34aed14d00ab4bcdd02510be91%7C0%7C0%7C637923320773376325%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=DBZGbFcgW2%2BkIbDs7uo1Iri7IiI2vdPv%2FxCM4oEZ0wI%3D&reserved=0>

Thanks
Dimuthu

On Fri, Jul 1, 2022 at 11:43 PM Hansaria, Himanshu 
<hhan...@iu.edu<mailto: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://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmkgilbert%2Fslurmspawner&data=05%7C01%7Chhansar%40iu.edu%7C0db15000176841814c2008da5be15efd%7C1113be34aed14d00ab4bcdd02510be91%7C0%7C0%7C637923320773376325%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=X1Jj7su0TgSVWMDDAWd1%2FlBRbPIlJEf%2BVTsijOSldDk%3D&reserved=0>
[https://opengraph.githubassets.com/3a058a2fadd040fea783725bf9b5a69f861b5f49942ac86b7584c9b57264cac2/mkgilbert/slurmspawner]<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmkgilbert%2Fslurmspawner&data=05%7C01%7Chhansar%40iu.edu%7C0db15000176841814c2008da5be15efd%7C1113be34aed14d00ab4bcdd02510be91%7C0%7C0%7C637923320773376325%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=X1Jj7su0TgSVWMDDAWd1%2FlBRbPIlJEf%2BVTsijOSldDk%3D&reserved=0>
GitHub - mkgilbert/slurmspawner: Custom Spawner for Jupyterhub to start slurm 
jobs when users log 
in<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmkgilbert%2Fslurmspawner&data=05%7C01%7Chhansar%40iu.edu%7C0db15000176841814c2008da5be15efd%7C1113be34aed14d00ab4bcdd02510be91%7C0%7C0%7C637923320773376325%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=X1Jj7su0TgSVWMDDAWd1%2FlBRbPIlJEf%2BVTsijOSldDk%3D&reserved=0>
slurmspawner for Jupyterhub. This is a custom spawner for Jupyterhub that is 
designed for installations on clusters using Slurm scheduling software.
github.com<https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgithub.com%2F&data=05%7C01%7Chhansar%40iu.edu%7C0db15000176841814c2008da5be15efd%7C1113be34aed14d00ab4bcdd02510be91%7C0%7C0%7C637923320773376325%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pbqatdNHVu33NKN%2FVeBuNAGnmzl%2FD8iVW3G9nmnz7Js%3D&reserved=0>



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<mailto:hhan...@iu.edu>>
Sent: Friday, July 1, 2022 10:54 PM
To: dev@airavata.apache.org<mailto:dev@airavata.apache.org> 
<dev@airavata.apache.org<mailto: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<mailto:hhan...@iu.edu>>
Sent: Friday, July 1, 2022 10:48 PM
To: dev@airavata.apache.org<mailto:dev@airavata.apache.org> 
<dev@airavata.apache.org<mailto: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



Reply via email to