OK, I'll start with that. Thanks for the tip Matthias.

On Thursday, March 26, 2020 at 11:28:47 AM UTC-4, Matthias Bussonnier wrote:
>
> As far as I can tell not with the default spawner, but as the spawner 
> are plugins, you can write your own, or just extend the one you like 
> to have `cpu_limit` be a per-user value. 
>
> If you use a spawner like SlurmSpawner, then it might be easier to 
> configure this in Slurm itself that have such mechanism and do have 
> user<-> resources association. I'm guessing other Spawner might have 
> that as well. 
> -- 
> Matthias 
>
> On Fri, 20 Mar 2020 at 11:41, David Greene <[email protected] 
> <javascript:>> wrote: 
> > 
> > Hey folks, 
> > 
> > I've been using the following in my jupyterhub_config.py to set the 
> spawner limits. 
> > 
> > ## Maximum number of cpu-cores a single-user notebook server is allowed 
> to use. 
> > c.Spawner.cpu_limit = 20 
> > 
> > ## Maximum number of bytes a single-user notebook server is allowed to 
> use. 
> > c.Spawner.mem_limit = '16G' 
> > 
> > Is there a way to set this on a per-user basis? For example, if I want 
> to set user jack's CPU limit to 0.5 and user jill's CPU limit to 10? 
> > 
> > Can this be done online (without restarting the whole JupyterHub service 
> in systemd)? 
> > 
> > Thanks! 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Project Jupyter" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jupyter/c5338b26-3b52-43ff-a525-3cb0f5d6ab9d%40googlegroups.com.
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/3d55cd94-07f4-4814-9e4a-c36c6b993c1c%40googlegroups.com.

Reply via email to