systemdspawner
systemdspawner copied to clipboard
Add user specific quotas
Hi, I've added two configuration parameters:
-
user_without_quotaswill overwrite mem_limit/cpu_limit. Users in this list will have unlimited RAM and CPU. -
special_user_quotaswill 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.
/cc @yuvipanda for his opinion
(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.
Is this something that's still a possibiltiy? The abilitiy to have different resource limits on a user or group level would be fantastic.
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.