contrib - quota in Moodle

contrib - quota in Moodle

by Julien Boulen -
Number of replies: 2
Picture of Core developers Picture of Plugin developers
Hello,

I work at Rennes 2 University in France, and we changed some parts of core code, in our Moodle 1.9.7.

We needed to control disk usage on our plateform. So, we wrote a kind of quota function.

We can set global quota on all the plateform, and then adjust quota on each course.

We added also possibility to drop quota.

Because we don't want fork moodle and we want get the lesser as possible conflicts on cvs update, there is some faults in system smile

At the moment, we can be over quota around zip/unzip action (eg: backup, restore, etc...)

But once user is over quota, we restrict all access to backup or restore pages.

Also, we made a block to teachers that represents disk usage progression.

As I see in your wiki (http://docs.moodle.org/en/Development:File_API#Support_quotas_per_user.2C_course.2C_etc.), some people was interested for quota.

I hope our code can help some people...

requirement : Linux system only
patches et block : http://cursus.uhb.fr/contrib/moodle_quota_20100118.zip

julien

Average of ratings: -
In reply to Julien Boulen

Re: contrib - quota in Moodle

by Gary Anderson -
Julien:

In one sense, this question should be answered by suggesting that you contribute your code to CONTRIB.

But I also have to wonder, simply out of curiosity, with storage cost at about 5 cents (or .03 Euros) per gigabyte and falling, why one would want to set a quota on storage at all. Perhaps one needs to look at how they are managing storage instead?

I finally set a limit of 800MB on upload size, and in a school with very heavy users, we still can't get to 30GB to backup, and we never delete a course, etc. even after several years.

Your site obviously has a reason -- perhaps it is to limit bandwidth usage with a limited capacity network or for some other reason. But with the low cost and easy storage of massive amounts of data, I wonder if it is a real priority for most sites to put any limitations on the storage uses of their users.

Still, I am sure that your code would be welcome in the CONTRIB area as everyone looks at these issues differently. For me, I would go out and spend $100 on a 1TB drive to backup old course files instead.

--Gary
In reply to Gary Anderson

Re: contrib - quota in Moodle

by Julien Boulen -
Picture of Core developers Picture of Plugin developers
Hello Gary,

Well, according to our admin system, our storage cost is more expensive than 5 cents per GB.

It's due to our hardware infrastructure and our backup frequency.

We make two data backups every night, and we keep all backups during one week and one backup of every first day of the week during one month.

At the moment, we got 95 GB of data, and this figure grows each month.

Then, personal brandwidth is better than few years, so data are no more sum up to pdf document or odt document only, but video or sound documents too.

In our case, we don't restrict absolutely to XX MB. If a teacher needs more, we set up his quota. It's more an indication than a restriction, I recognize.

About CONTRIB, I prefer wait some feedbacks here and fix issue on Windows system.

julien