Hello Yanghe,
Why not to setup HAproxy in front of your ICAP instances?
ICAP is relatively easily can be load balanced by HAProxy.
We have it in place up and running.
Best regards,
Rafael Akchurin
Diladele B.V.
http://www.quintolabs.com
http://www.diladele.com
--
Please take a look at Web Safety - our ICAP based web filter server for Squid proxy.
From: squid-users [mailto:squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx]
On Behalf Of yanghe
Sent: Friday, September 16, 2016 10:19 AM
To: squid-users <squid-users@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [squid-users] c-icap load balancing
> Unfortunately, Squid does not support true load
> However, there is a workaround: Use
IF I do not use adaptation_service_set or adaptation_service_chain to list N c-icap services.the traffic will only go to
the first.
Get your advice.I tried configure the "random" ACLs,But,It is not successful
balance_on_multiple_ip on
acl halfpercent random 0.5
tcp_outgoing_address 192.168.1.4 halfpercent
tcp_outgoing_address 192.168.1.2
icap_service service_req reqmod_precache bypass=0 icap://192.168.1.4:1344/echo
adaptation_access service_req allow all
icap_service service_req_two reqmod_precache bypass=0 icap://192.168.1.2:1344/echo
adaptation_access service_req_two allow all
This is mistake in cache.log
"commBind: Cannot bind socket FD 18 to 192.168.1.2: (99) Cannot assign requested address"
"commBind: Cannot bind socket FD 18 to 192.168.1.4: (99) Cannot assign requested address"
|
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users