Search squid archive

Squid in CARP setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux