On 03/29/2012 08:45 PM, Robert Collins wrote:
> 2012/3/30 Henrik Nordström<henrik_at_henriknordstrom.net>:
>>> Can tcp_outgoing_address take multiple addresses now? Does it just round-robin through them?
>>
>> It can only select one per request at the moment.
>
> Thats probably something we should fix. For now though an external ACL
> could deliver round robin answers, one per request - and it could look
> a tthe log file to learn about size of objects/ estimate bandwidth
> etc.
Reviving this old question again. So, I understand that I can
make external ACLs, and from looking at the config documentation,
I suspect I can have a single external_acl_type definition, and
invoke the same class for N "acl external" lines.
To be more clear about my needs, I'm not really looking to have
two or three external IP addresses. I want to have *lots*. If I
have a host with 20, or 100, external addresses, and write an
external ACL helper to figure out (based on client IP, username,
server, or whatever) which IP to assign; I'd have to write 100
ACL definitions, then 100 tcp_outgoing_address lines, each one
passing the right parameters to determine whether the suggested
IP address was the "right" one. While I suppose this could work,
it would require the external ACL helper be queried 100 times,
which just *can't* be fast.
So, I think I'll have to implement something internal to squid.
And, I think it shouldn't be ACL based, because the boolean nature
of ACLs just doesn't fit the arbitrary size of this problem space.
Thanks. And if anyone has any suggestions or sees something I
didn't think of, please let me know.
- Chris
Received on Thu May 10 2012 - 13:56:06 MDT
This archive was generated by hypermail 2.2.0 : Thu May 10 2012 - 12:00:05 MDT