The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Limit connection speed by user?

Discussion in 'General Discussion' started by desiguru, Sep 12, 2010.

  1. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    Is there a way where I can limit how much a certain user can push maximum?

    I have a webhosting done on one of my cPanel and 18 sites use almost nothing but this 1 site is pushing up to 70mbps sometimes and that causes other sites to slow down.
     
  2. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    You can use LVE module to define cpu limit on your server. Refer following documentation to collect more information regarding LVE module.

    Working with LVE
     
  3. iseletsk

    iseletsk Well-Known Member

    Joined:
    Mar 3, 2010
    Messages:
    163
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Princeton, New Jersey, United States
    No. LVE cannot control bandwith, but it can control CPU usage per website, and number of concurrent connections per mime type (usually dynamic scripts, but you can also set it up for big files like avi, etc...)
     
  4. sirdopes

    sirdopes Well-Known Member
    PartnerNOC

    Joined:
    Sep 25, 2007
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    You can also use mod_bandwith. From the readme:

    3.5 - LargeFileLimit [Type] [Minimum Size] [bytes/s]

    Type, is the last part of a file, or * for all. You can use .tgz to match
    only tar-compressed files, .avi to match video files, or * to match all.
    Minimum Size, is the size (in kbytes) of the file, to be matched. That way
    you can match huge video files that hog your bandwidth.
    The last parameter... is obvious. The speed allowed.

    Example :
    LargeFileLimit .avi 500 10240

    This limits .avi files over (or equal to) 500kb to 10kbytes/s



    You can also limit per vhost or per user agent.
     
Loading...

Share This Page