Hi, I suppose some of you having more than couple of self-hosted websites already had this experience - you have a customer that has a sh***y website and it allocates lots of CPU resources while they are paying the same as everybody else. What I would like to do: I would like to be able to limit users to certain CPU (for starts) consumption on per user basis as ISPConfig has the structure 1 user = 1 website (ie. example.com is run as web1 while example1.com is run as web2 user) it should be pretty easy to do but how to do it? I suppose the very basic version of this would be - no user can allocate more than 0.5 CPU at any given time. More advanced version would be: if this particular user us allocating 0.5 CPU for longer than 4 hours send me an email so I can deal with the user. Any thoughts how to do this on Debian/Ubuntu?
ISPConfig does not support setting limits, except disk quota. You have to do limiting at the OS level. https://wiki.debian.org/Limits
I'm aware it's not supported by ISPConfig, I was hoping for some tips how to do it or at least a link to something recent that members here tried together with ISPConfig and it worked well.
It might be possible to do that with cgroups, but I have never used that. https://askubuntu.com/questions/836469/install-cgconfig-in-ubuntu-16-04 https://github.com/jooyong-park/workspace/wiki/cgroups-on-debian-ubuntu https://serverfault.com/questions/719994/cgroups-limit-memory-per-user https://access.redhat.com/documenta...guide/sec-moving_a_process_to_a_control_group