[squid-users] TCP incoming requests Traffic Normalization
Alex Rousskov
rousskov at measurement-factory.com
Mon Jan 13 16:42:52 UTC 2020
On 1/13/20 5:36 AM, Ahmad Alzaeem wrote:
> just need to apply that on “ new requests “ not on already “ established “ connections
You can probably do this using an external ACL. The program implementing
your external ACL can delay incoming requests to make sure that the
aggregate served request rate is at most 50/s. You will need to write
that program or find something suitable on the web.
For more details, look for "acl aclname external" and perhaps "external
ACL" in squid.conf.documented. The API for the external ACL program
(called "helper") is described at
https://wiki.squid-cache.org/Features/AddonHelpers#Access_Control_.28ACL.29
N.B. One connection may carry many HTTP requests. To implement the limit
correctly, you will need to clarify whether the limit should apply to
new requests on established connections. The external ACL helper can
support any answer to that question, but its code will be different
depending on your answer.
Alex.
More information about the squid-users
mailing list