systemdspawner icon indicating copy to clipboard operation
systemdspawner copied to clipboard

Add user specific quotas

Open RobinFrcd opened this issue 8 years ago • 3 comments

Hi, I've added two configuration parameters:

  • user_without_quotas will overwrite mem_limit/cpu_limit. Users in this list will have unlimited RAM and CPU.

  • special_user_quotas will overwrite mem_limit and cpu_limit for a specific user. It is possible to set mem_limit OR/AND cpu_limit.

user_without_quotas  = {'user1', 'user2'}
special_user_quotas = {
    'user3': {
        'mem_litmit': '2G'
    },
    'user4': {
        'mem_limit': '4G',
        'cpu_limit: 1.5
    }
}

user_without_quotas is stronger than special_user_quotas.

Hope it will be useful.

RobinFrcd avatar Oct 20 '17 18:10 RobinFrcd

/cc @yuvipanda for his opinion

RobinFrcd avatar Oct 22 '17 21:10 RobinFrcd

(thank you for the patch! I'll look into this sometime within the next week!)

Also cc @minrk for his thoughts, if he has time to spare.

yuvipanda avatar Oct 22 '17 21:10 yuvipanda

Is this something that's still a possibiltiy? The abilitiy to have different resource limits on a user or group level would be fantastic.

astro-arphid avatar Jul 06 '22 08:07 astro-arphid

This seems like a very relevant feature, soo much that it should be relevant for other cases than quotas - such as user specific .

This is whats proposed in #98, I'll close this in favor of that.

consideRatio avatar May 26 '23 07:05 consideRatio