Limiting of disk space and bandwidth

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Kriek
Forum Contributor
Posts: 238
Joined: Wed May 29, 2002 3:46 am
Location: Florida
Contact:

Limiting of disk space and bandwidth

Post by Kriek »

I am running a system where users can upload their files to the server via PHP/MySQL and would like to limit disk space and bandwidth for each user. I have several ideas on ways that I could accomplish this, but they are just theories and I'd like to hear some input on this subject. We were grepping the logs for bandwidth through the AWK command, but this was causing the server to overprocess so I would like to accomplish this another way. Now, I could change the cron to 3, instead of 1 and that would have stopped the load, but there either has to be another way or another solution, databased disk space and transfer etc.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

you might be interested in mod_throttle for apache. It's not supposed to limit the total amount of throughput but the bandwidth/time.

To limit the amount of disk space quota is a wonderful feature of unix systems. But you'd have to run the different virtual servers under different user-accounts.
Post Reply