About the jupyterhub resources limit

Hello everyone

When user login throw LDAP. is there any way to setup different resources for user.

example:
alice:
cpu limit : 8
memory limit: 16gb

bob:
cpu limit: 16
memory limit: 32gb

thanks

It depends on how you’re running JupyterHub, and which spawner you’re using.
For example, KubeSpawner supports profiles, and values can be a callable which means you can dynamically set properties based on whatever criteria you want:
https://jupyterhub-kubespawner.readthedocs.io/en/latest/spawner.html#kubespawner.KubeSpawner.profile_list

Alternatively you can subclass and override pre_spawn_hook to set your resource limits dynamically.

2 Likes