# About the jupyterhub resources limit

**URL:** https://discourse.jupyter.org/t/about-the-jupyterhub-resources-limit/24764
**Category:** JupyterHub
**Created:** [March 25, 2024, 6:23am UTC](https://discourse.jupyter.org/t/about-the-jupyterhub-resources-limit/24764 "2024-03-25T06:23:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![edp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@edp](https://discourse.jupyter.org/u/edp)
#### Post date: [March 25, 2024, 6:23am UTC](https://discourse.jupyter.org/t/about-the-jupyterhub-resources-limit/24764/1 "2024-03-25T06:23:45Z")

</div>

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

---

<div class="post-metadata">

### Author: ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)
#### Post date: [March 25, 2024, 1:54pm UTC](https://discourse.jupyter.org/t/about-the-jupyterhub-resources-limit/24764/2 "2024-03-25T13:54:18Z")

</div>

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](https://jupyterhub-kubespawner.readthedocs.io/en/latest/spawner.html#kubespawner.KubeSpawner.profile_list)

Alternatively you can subclass and override [`pre_spawn_hook`](https://jupyterhub.readthedocs.io/en/stable/reference/api/auth.html#jupyterhub.auth.Authenticator.pre_spawn_start) to set your resource limits dynamically.
