Outbound Bandwidth per VirtualHost

Discussion in 'Install/Configuration' started by iDealhosting, Apr 5, 2011.

  1. iDealhosting

    iDealhosting New Member

    Hi,

    Is it possible to assign up and down bandwidth limit for each VirtualHost?

    Control Panel: DirectAdmin
  2. webizen

    webizen New Member

    it is not possible.
  3. iDealhosting

    iDealhosting New Member

    When we set the outgoing traffic of the server to 100 KB and try to watch a video on any page of the site, the other pages become unreachable. When we pause the video, the browser starts to load the pages. How can we fix that?
  4. webizen

    webizen New Member

    Are you able to open 2nd connection to watch that video while the first one is still open? Can other user (from different IP) access the site while the video is playing?
  5. iDealhosting

    iDealhosting New Member

  6. webizen

    webizen New Member

    i can download the mp4 video via wget (command line) and load the page (http://cizgifilmseyret.com) & watch the video from firefox(different tabs) at the same time. also wget the video from 3 terminal sessions at the same time, all achieve ~100KB/s %

    session1
    session2
    session3
    So the problem you describe is not happening.
    Last edited: Apr 7, 2011
  7. iDealhosting

    iDealhosting New Member

  8. webizen

    webizen New Member

    are the tests performed on the same server?
  9. iDealhosting

    iDealhosting New Member

    I tested localhost and Dedicated Server
  10. iDealhosting

    iDealhosting New Member

    I now tested with diffrent Dedicated Server but same problem
  11. webizen

    webizen New Member

    pls check per client throttle settings (admin console -> configuration -> server -> security) and paste here.
  12. iDealhosting

    iDealhosting New Member

    Static Requests/second 0
    Dynamic Requests/second 0
    Outbound Bandwidth (bytes/sec) 100000
    Inbound Bandwidth (bytes/sec) 0
    Connection Soft Limit 10000
    Connection Hard Limit 10000
    Grace Period (sec) 15
    Banned Period (sec) 300
  13. webizen

    webizen New Member

    the following setting limits download throughput per client (IP). for a 43MB mp4 video, 100KB/s is easy to achieve for a connection. that's why other connections from same IP have to wait until bandwidth is available. hence the problem. my earlier tests were from different IPs (one connection per each IP). hence no issue.

    You should set it to zero - 0 (disable throttling) to work around this.
    Last edited: Apr 7, 2011
  14. iDealhosting

    iDealhosting New Member

    But this is not usefull. Why not sharing bandwidth to Per Connection. 1st connection 50kb, 2nd connection 50kb ?
  15. webizen

    webizen New Member

    such thing (evenly split bandwidth among multiple connections from one client) is not available. you could have lsws proxy mp4 (served from other server with low speed e.g. < 50KB/s) to serve mp4 and the page to user at the same time.
    Last edited: Apr 7, 2011
  16. mistwang

    mistwang LiteSpeed Staff

    We will try to implement some kind of QoS logic, something like which is in favor of requests with smaller response body.

Share This Page