[squid-users] small problem with squid and rproxy of more than 1 site..

From: Klavs Klavsen <ktk@dont-contact.us>
Date: Mon, 22 Oct 2001 13:52:14 +0200

when I only setup:

cache_peer www1.cnn.dk parent 80 3130 originserver no-query round-robin
cache_peer www2.cnn.dk parent 80 3130 originserver no-query round-robin
cache_peer www1.aok.dk parent 80 3130 originserver no-query round-robin
cache_peer www2.aok.dk parent 80 3130 originserver no-query round-robin

And request aok.dk it gets some data.. but it also loadbalances requests on
the two cnn.dk parents.. - which means that I get Misses..

1003754515.873 0 195.24.2.199 TCP_MISS/200 694 GET
http://aok.dk/img/navigation/bottombar/op.gif -
ROUNDROBIN_PARENT/www1.aok.dk image/gif
1003754515.873 0 195.24.2.199 TCP_MISS/404 481 GET
http://aok.dk/img/navigation/bottombar/topbotleft.gif -
ROUNDROBIN_PARENT/www2.cnn.dk text/html
1003754515.873 0 195.24.2.199 TCP_MISS/404 481 GET
http://aok.dk/img/navigation/bottombar/botbotleft.gif -
ROUNDROBIN_PARENT/www1.cnn.dk text/html
1003754515.873 0 195.24.2.199 TCP_MISS/200 2150 GET
http://aok.dk/img/navigation/bottombar/bottomlogo.gif -
ROUNDROBIN_PARENT/www2.aok.dk image/gif
1003754515.873 0 195.24.2.199 TCP_MISS/200 472 GET
http://aok.dk/img/navigation/bottombar/botbotright.gif -
ROUNDROBIN_PARENT/www1.aok.dk image/gif
1003754517.873 0 195.24.2.199 TCP_MISS/404 472 GET
http://aok.dk/img/media/sponsor/reserver.gif -
ROUNDROBIN_PARENT/www2.cnn.dk text/html
1003754517.873 0 195.24.2.199 TCP_MISS/404 468 GET
http://aok.dk/img/media/sponsor/plog.gif - ROUNDROBIN_PARENT/www1.cnn.dk
text/html
1003754524.873 0 195.24.2.199 TCP_MISS/200 3272 GET
http://aok.dk/img/david/popup.html - ROUNDROBIN_PARENT/www2.aok.dk
text/html
1003754524.873 0 195.24.2.199 TCP_MISS/200 5187 GET
http://aok.dk/img/david/head.gif - ROUNDROBIN_PARENT/www1.aok.dk image/gif

I figured, that it would be cache_peer_domain you would use to state which
cache_peers to use for which domain:

cache_peer_domain www1.cnn.dk cnn.dk
cache_peer_domain www2.cnn.dk cnn.dk
cache_peer_domain www1.aok.dk aok.dk
cache_peer_domain www2.aok.dk aok.dk

when I have set this: I get no answer in the browser and this output in the
log:

1003754886.823 52000 195.24.2.199 TCP_HIT/000 0 GET http://aok.dk/ -
NONE/- -
1003754917.823 26000 195.24.2.199 TCP_HIT/000 0 GET http://www.aok.dk/ -
NONE/- -

Any Ideas?

-------------| This mail has been sent to you by: |------------
Klavs Klavsen, IT-coordinator and Systems Administrator at
Metropol Online - http://www.metropol.dk
Tlf. 33752700, Fax 33752720, Email ktk@metropol.dk

Private- Email klavs@klavsen.net - http://www.vsen.dk

--------------------[ I believe that... ]-----------------------
It is a myth that people resist change. People resist what other
people make them do, not what they themselves choose to do...
That's why companies that innovate successfully year after year
seek their peopl's ideas, let them initiate new projects and
encourage more experiments. -- Rosabeth Moss Kanter
Received on Mon Oct 22 2001 - 05:52:19 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:03:02 MST