[squid-users] c-icap load balancing
Rafael Akchurin
rafael.akchurin at diladele.com
Fri Sep 16 08:28:03 UTC 2016
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 at lists.squid-cache.org] On Behalf Of yanghe
Sent: Friday, September 16, 2016 10:19 AM
To: squid-users <squid-users at lists.squid-cache.org>
Subject: Re: [squid-users] c-icap load balancing
On 09/14/2016 09:51 PM, wrote: "Alex Rousskov"<rousskov at measurement-factory.com<mailto:rousskov at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160916/4f5d8156/attachment-0001.html>
More information about the squid-users
mailing list