How to limit CPU performance on per user level

Discussion in 'ISPConfig 3 Priority Support' started by Honza, Jan 28, 2019.

  1. Honza

    Honza Member

    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. is run as web1 while 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?
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. Honza

    Honza Member

    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.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page