[slurm-users] Re: canonical way to run longer shell/bash interactive job (instead of srun inside of screen/tmux at front-end)?

2024-02-28 Thread Josef Dvoracek via slurm-users

From unclear reason "--wrap" was not part of my /repertoire/ so far.

thanks

On 26. 02. 24 9:47, Ward Poelmans via slurm-users wrote:

sbatch --wrap 'screen -D -m'
srun --jobid  --pty screen -rd

smime.p7s
Description: S/MIME Cryptographic Signature

-- 
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com


[slurm-users] Re: canonical way to run longer shell/bash interactive job (instead of srun inside of screen/tmux at front-end)?

2024-02-27 Thread Chris Samuel via slurm-users

On 26/2/24 12:27 am, Josef Dvoracek via slurm-users wrote:


What is the recommended way to run longer interactive job at your systems?


We provide NX for our users and also access via JupyterHub.

We also have high priority QOS's intended for interactive use for rapid 
response, but they are capped at 4 hours (or 6 hours for Jupyter users).


All the best,
Chris

--
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com


[slurm-users] Re: canonical way to run longer shell/bash interactive job (instead of srun inside of screen/tmux at front-end)?

2024-02-27 Thread Brian Andrus via slurm-users

Josef,

for us, we put a load balancer in front of the login nodes with session 
affinity enabled. This makes them land on the same backend node each time.


Also, for interactive X sessions, users start a desktop session on the 
node and then use vnc to connect there. This accommodates disconnection 
for any reason even for X-based apps.


Personally, I don't care much for interactive sessions in HPC, but there 
is a large body that only knows how to do things that way, so it is there.


Brian Andrus


On 2/26/2024 12:27 AM, Josef Dvoracek via slurm-users wrote:
What is the recommended way to run longer interactive job at your 
systems?


Our how-to includes starting screen at front-end node and running srun 
with bash/zsh inside,
but that indeed brings dependency between login node (with screen) and 
the compute node job.


On systems with multiple front-ends users need to remember the login 
node where they have their screen session..


Are you anybody using something more advanced and still understandable 
by casual user of HPC?


(I know Open On Demand, but often the use of native console has 
certain benefits. )


cheers

josef







--
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com


[slurm-users] Re: canonical way to run longer shell/bash interactive job (instead of srun inside of screen/tmux at front-end)?

2024-02-26 Thread Ward Poelmans via slurm-users

Hi,

On 26/02/2024 09:27, Josef Dvoracek via slurm-users wrote:


Are you anybody using something more advanced and still understandable by 
casual user of HPC?


I'm not sure it qualifies but:

sbatch --wrap 'screen -D -m'
srun --jobid  --pty screen -rd

Or:
sbatch -J screen --wrap 'screen -D -m'
srun --jobid $(squeue -n screen -h -o '%A') --pty screen -rd

Ward


smime.p7s
Description: S/MIME Cryptographic Signature

-- 
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com