[squid-users] Squid in CARP setup

From: Tristan Linnenbank <tristan@dont-contact.us>
Date: Wed, 29 Mar 2006 11:07:24 +0200

Hi,

I need some help with a CARP setup. I want a large cooperative reverse
proxy for a static content website, minimizing redundant use of RAM. At
the moment I have two squid servers load-balanced by IVPS.
Because of the large amount of popular objects the in-memory-hit-ratio
is about 80%.
In theory, when using CARP the URI-space is partioned over my two squids
and thus I should be able to get a larger in-memory-hit-ratio. I expect
this will improve the performance, because of my slow backends.

I use
========
cache_peer 10.10.0.91 parent 3128 0 carp-load-factor=0.5 proxy-only
cache_peer 10.10.0.92 parent 3128 0 carp-load-factor=0.5 proxy-only
=========
in both squid.conf's. Further I use the following ACLs:
=============
acl internal src 10.10.0.0/24
cache_peer_access 10.10.0.91 allow internal
cache_peer_access 10.10.0.92 allow internal
=========
 
CARP is enabled, according to squid -v
==============
Squid Cache: Version 2.5.STABLE11
configure options: --prefix=/usr --bindir=/usr/bin --exec-prefix=/usr
--sbindir=/usr/sbin --localstatedir=/var --mandir=/usr/share/man
--sysconfdir=/etc/squid --libexecdir=/usr/lib/squid
--enable-auth=basic,digest,ntlm --enable-removal-policies=lru,heap
--enable-digest-auth-helpers=password
--enable-basic-auth-helpers=PAM,getpwnam,YP,NCSA,SMB,MSNT,multi-domain-NTLM,winbind
--enable-external-acl-helpers=ip_user,unix_group,wbinfo_group,winbind_group
--enable-ntlm-auth-helpers=SMB,fakeauth,no_check,winbind
--enable-linux-netfilter --enable-ident-lookups --enable-useragent-log
--enable-cache-digests --enable-delay-pools --enable-referer-log
--enable-truncate --enable-arp-acl --with-pthreads --with-large-files
--enable-htcp --enable-carp --enable-poll
--disable-follow-x-forwarded-for --host=x86_64-pc-linux-gnu
--disable-snmp --enable-ssl --enable-storeio='ufs,diskd,coss,aufs,null'
--enable-async-io
==================

and squid -k parse indicates no errors.

Looking in the log-files, the requests are handled by one squid, instead
of two. Tcpdump indicates no
traffic between both squids.

Not much about CARP can be found on the internet. I used the O'Reilly on
Squid, but nothing more than stated above is mentioned in that book.

Can somebody clarify CARP for me (documentation, clues, antything :D)?
Thanks in advance.
Received on Wed Mar 29 2006 - 02:07:30 MST

This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:04 MST