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-boun...@lists.squid-cache.org] On Behalf 
Of yanghe
Sent: Friday, September 16, 2016 10:19 AM
To: squid-users <squid-users@lists.squid-cache.org>
Subject: Re: [squid-users] c-icap load balancing

On 09/14/2016 09:51 PM,  wrote: "Alex 
Rousskov"<rouss...@measurement-factory.com<mailto:rouss...@measurement-factory.com>>
> Unfortunately, Squid does not support true load
> However, there is a workaround: Use

Thanks for your adivice.
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
Here is my squid.conf
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"

That's why
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

Reply via email to