Re: [squid-users] Rate limiting for certain servers

2013-06-06 Thread Yang Zhang
On Sat, May 11, 2013 at 2:41 AM, Amos Jeffries  wrote:
> On 11/05/2013 9:01 a.m., Yang Zhang wrote:
>>
>> Can I throttle the request rate to a certain set of servers?
>>
>> I came across this but it seems to only be for throttling specific
>> clients:
>>
>> http://wiki.squid-cache.org/Features/DelayPools
>>
>> (The server is an API and we'd like to respect its rate limit among
>> requests from our various client processes.)
>
>
> No, that *is* the right feature to be using. Use the class 1 aggregate pool
> type for limiting particular requests without regard to client details.
>
> Amos

I can't seem to find any way to rate limit by request rate rather than
bandwidth (req/s rather than bytes/s).  Does such an option exist and
I'm overlooking it?  Thanks.


Re: [squid-users] Rate limiting for certain servers

2013-05-11 Thread Amos Jeffries

On 11/05/2013 9:01 a.m., Yang Zhang wrote:

Can I throttle the request rate to a certain set of servers?

I came across this but it seems to only be for throttling specific clients:

http://wiki.squid-cache.org/Features/DelayPools

(The server is an API and we'd like to respect its rate limit among
requests from our various client processes.)


No, that *is* the right feature to be using. Use the class 1 aggregate 
pool type for limiting particular requests without regard to client details.


Amos


[squid-users] Rate limiting for certain servers

2013-05-10 Thread Yang Zhang
Can I throttle the request rate to a certain set of servers?

I came across this but it seems to only be for throttling specific clients:

http://wiki.squid-cache.org/Features/DelayPools

(The server is an API and we'd like to respect its rate limit among
requests from our various client processes.)

Thanks.