Re: [squid-users] qouta from squid

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 25 Jul 2010 14:22:58 +1200

Leonardo Carneiro wrote:
> Hi Amos. If i create a bucket with the size of 100mb and a
> regeneration rate of 0, wouldn't i be using some kind of quota? I
> mean, when the user overpasses 100mb, he would not download anything
> else i think.

Delay pools are designed a bytes-per-second limit.

Your proposed pool can look like a quota but it has no fixed times
involved anywhere. Quotas as asked for require reset points longer than
one second.
(Which shows the small design change need to make them do quotas, but
that still needs coding.)

The user disappears for a short while and it's reset. But....
  * you have no control over that reset time period. Its based on the
users regularity of usage, more particularly their regularity of usage
of the pool.
  * if they re-appear near the end of the time period its extended!
    ie a 'daily' pool for a heavy user (maximum pool duration) where
user logs in late one day at say 9am and use that days pool up. Then
next day they log in at their regular 7am and find themselves without
access for a whole extra day.
  * it cannot be set more than ~4MB pool size (32-bit signed integer of
bytes), in Squid older than 3.1

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.5
Received on Sun Jul 25 2010 - 02:23:14 MDT

This archive was generated by hypermail 2.2.0 : Sun Jul 25 2010 - 12:00:04 MDT