Video share server needs to limit file size

Discussion in 'Site & Server Administration' started by Gr8TimesToCome, May 29, 2008.

  1. #1
    We have found that we need to limit the amount of cpu uage by users on one of our video share servers. On this server we currently have 20 users on a sharred plan. Thought that the obvious BW usage would be the biggest challenge, as it turns out we havent gone over the 2 TB that we have.

    We have come up with an encoding process that uses the 264 codec and gives us excellent results in terms of quality but is very cpu intensive to the point of really slowing down the server when 10 or more users simutaneously are encoding their videos.

    Can someone suggest a script that would allows us to limit the file size in terms of MB/GB that each user could upload per month.

    So for example a client pays 10.00 per month and we wanted to limit their uploads to a total of 900 MB per month vs the client that is paying 50.00 per month who would have the ability to upload say 8 GB per month.

    There maybe a better way to resolve this then limiting the file size so if you can suggest what else may work in this situation I really appreciate any and all suggestions.

    Cento 5
    c-panel
    Dual Quad Core 2.0 ghz
    6Mb Ram
    1TB HDD
    2 TB of BW
     
    Gr8TimesToCome, May 29, 2008 IP
  2. lkj

    lkj Peon

    Messages:
    729
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to write your very own accounting software. Check the upload log for size for a particular user, sum it all up and then disable further FTP/SCP access displaying warning message that monthly limit has been exceeded.
     
    lkj, May 30, 2008 IP
  3. Gr8TimesToCome

    Gr8TimesToCome Peon

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Ikj.
    If you would be interested in doing something like this please let me know what you would charge.
    Or if you could point me where I might find someone who could

    Appreciate it.
     
    Gr8TimesToCome, May 31, 2008 IP