Re: [squid-users] delaypolls

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 04 Mar 2009 13:19:17 +1300

░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ wrote:
> so the correct syntax is :
>
> delay_pools 2
> delay_class 1 1
> delay_parameters 1 32000/64000
> delay_access 1 allow domain-nakal !free
> delay_access 1 allow nakal !free
> delay_access 1 deny ALL
>
> delay_class 2 1
> delay_parameters 2 1000/1000 1000/2800
> delay_access 2 allow porn !free
> delay_access 2 deny ALL
>
>
>
> about class 2 is correct ?

Ah, sorry I overlooked, you have two class-1 pools defined.
http://www.squid-cache.org/Doc/config/delay_class/

so...
   delay_parameters 2 1000/1000
or
   delay_parameters 2 1000/2800
or
   delay_class 2 2
   delay_parameters 2 1000/1000 1000/2800

Amos

>
> On Fri, Feb 27, 2009 at 3:53 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>> ░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ wrote:
>>> can you fix it for me ?
>>>
>>> i want user access class 1 got 32000 but they can burst to 64000
>>>
>> Just change the "a/b" parts as you need.
>> The numbers are <base-speed>/<burst-max> and count bytes.
>>
>> Amos
>> - Show quoted text -
>>
>>> and when class 2 same thing but with lower b/w
>>>
>>> On Fri, Feb 27, 2009 at 3:36 PM, Amos Jeffries <squid3_at_treenet.co.nz>
>>> wrote:
>>>> ░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ wrote:
>>>>> delay_parameters 1 32000/32000 2500/64000
>>>> (class 1) All people assigned into this pool share a single 32000 byte
>>>> per
>>>> second pipe.
>>>>
>>>> The other parameters 250/64000 is garbage, since a class 1 pool only has
>>>> one
>>>> set of speed parameters.
>>>>
>>>>> and
>>>>> delay_parameters 2 1000/1000 1000/2800
>>>> (class 2) people assigned into this pool all share a 1000 byte per second
>>>> pipe.
>>>> Individual people start off with 2800 (or maybe only 1000) bytes, but are
>>>> limited to 1000 per second once they start downloading.
>>>>
>>>> I'm not sure what Squid does when one IP is allowed a higher starting
>>>> bytes
>>>> than the entire group, its probably not good.
>>>>
>>>>> On Fri, Feb 27, 2009 at 2:36 PM, Amos Jeffries <squid3_at_treenet.co.nz>
>>>>> wrote:
>>>>>> ░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ wrote:
>>>>>>> what is this paramenter mean ?
>>>>>>>
>>>>>>> acl domain-nakal url_regex -i "/etc/squid/domain-nakal.txt"
>>>>>>> acl nakal url_regex -i "/etc/squid/ext-nakal.txt"
>>>>>>> acl porn url_regex -i "/etc/squid/porn.txt"
>>>>>>>
>>>>>>> delay_pools 2
>>>>>>> delay_class 1 1
>>>>>>> delay_parameters 1 32000/32000 2500/64000
>>>>>>> delay_access 1 allow domain-nakal !free
>>>>>>> delay_access 1 allow nakal !free
>>>>>>> delay_access 1 deny ALL
>>>>>>>
>>>>>>> delay_class 2 1
>>>>>>> delay_parameters 2 1000/1000 1000/2800
>>>>>>> delay_access 2 allow porn !free
>>>>>>> delay_access 2 deny ALL
>>>>>>>
>>>>>>>
>>>>>>> please tell me in english
>>>>>>>
>>>>>> Which one? you list many,many parameters.
>>>>>>

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
   Current Beta Squid 3.1.0.6
Received on Wed Mar 04 2009 - 00:18:50 MST

This archive was generated by hypermail 2.2.0 : Wed Mar 04 2009 - 12:00:02 MST