Rolling Quota

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
toutanc
Posts: 2
Joined: Sat Nov 21, 2009 8:18 am

Rolling Quota

Post by toutanc »

Hi everyone,

First of all, thank you for an amazing piece of software, I just love it. ;)

I have a quick question regarding quotas, is there a way to set up a rolling quota?

Mt ISP, which happens to be my uni, allows me 5G per 24h rolling. If it is 02:45pm, then the total bandwidth since 02:45pm the previous day will be taken into account.

Can I somehow setup a quota in gargoyle in that way?

Cheers,

Toutanc

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Rolling Quota

Post by Eric »

Unfortunately, no. Not at this time.

The back-end module that implents quotas would need to be modified to support this. The problem is you need another parameter: the rolling increment.

Think about it: you have to "roll" a block of data off the end every so often, and you need to to how often to do that (which also determines how big the blocks need to be). Do you roll every day? Every hour? Every minute? The higher resolution the "roll", the more memory it's going to take up, which is another problem with this.

So, this can be implemented if I add this parameter, but it will take some fairly involved modifications to the quota module. I will consider your suggestion, but this probably won't be implemented any time soon.

toutanc
Posts: 2
Joined: Sat Nov 21, 2009 8:18 am

Re: Rolling Quota

Post by toutanc »

Thank you for your answer! :)

In the meantime I use a workaround: I fixed a daily quota of 2.5 Gb so it can't get over 5Gb in 24 hours.

Post Reply