Quota write to flash

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

Post Reply
qawplo1
Posts: 5
Joined: Fri May 29, 2015 5:23 am

Quota write to flash

Post by qawplo1 »

As I read in forums, quota is written to flash several times a day, right?
Is the number of writes per day somehow configurable?

Also, it is not written automatically after the limit is reached.
In my case, I have a router which is physically accessible by end users. After the limit is reached, the users will experience their internet connection not working. What will they do? Reset the router! And since the quota usage has not been written, they can start all over again!

Is this avoidable?

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Quota write to flash

Post by Lantis »

its a Cron job, so yes it's controllable.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

qawplo1
Posts: 5
Joined: Fri May 29, 2015 5:23 am

Re: Quota write to flash

Post by qawplo1 »

Great, thanks.

Now, is it somehow possible to trigger a write once the limit is reached so that I do not have to make too many flash writes?

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Quota write to flash

Post by Lantis »

in theory yes, but i don't know how. you'd be modifying the code.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Quota write to flash

Post by ispyisail »


qawplo1
Posts: 5
Joined: Fri May 29, 2015 5:23 am

Re: Quota write to flash

Post by qawplo1 »

Thanks. I've edited the crontab directly so I ended with two entries. This should fix it.

About the triggered write - isn't it the logical thing to do? Maybe it can be added in future versions.

qawplo1
Posts: 5
Joined: Fri May 29, 2015 5:23 am

Re: Quota write to flash

Post by qawplo1 »

The trigger could also be configurable, such as:
"Write quota data
a. periodically
b. after a limit is reached
c. after xx MB/GB/TB of traffic"

Post Reply